base64 encryption - PHP and ASP

942 views Asked by At

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

There are 2 answers

0
davidethell On BEST ANSWER

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.

0
Quentin On

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.