0

Is it possible to encrypt data in ASP and decrypt it in PHP? I will be writing an application in PHP that will take data from an SQL server database that has been encrypted by another application in ASP. We therefore need to use the same encryption/decryption method. Is this possible?

2
  • 10
    You do know that base64 is not an encryption method, but an encoding method, right? Commented Jan 20, 2012 at 12:51
  • A simple edit changing "crypt" to "code" would make this a somewhat useful question and possibly halt the down-voting. Commented Jan 20, 2012 at 13:10

2 Answers 2

8

As mentioned in the comments, base64 is not encryption, but encoding. It can be a great way to encode binary objects for transport and storage.

The answer is, yes, if you use base64 encoding in ASP and store the value in the DB, you will be able to use base64_decode in PHP and get the original data back out.

Sign up to request clarification or add additional context in comments.

Comments

8

Is it possible to encrypt data in ASP and decrypt it in PHP?

Of course.

We therefore need to use the same encrypt / decrypt method. Is this possible?

Yes

base64 encryption

base64 is an encoding scheme, it isn't encryption. PHP has base64 functions.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.