Pankaj Kumar
Pankaj Kumar

Reputation: 82938

How to encrypt data in Java using DES and decrypt that data into PHP

My Android application needs to encrypt data into java (using DES) and send that to server, at server side I am using PHP, so it will require to decrypt that data into PHP. So how it will be possible?

Edited : If AES should be better , then how can I make encryption and decryption methods which can work in JAVA as well as PHP.

I did encryption and decryption in JAVA or PHP. But I have no idea about if I encrypt data into JAVA then how can I decrypt that data into PHP.

Upvotes: 2

Views: 1209

Answers (1)

Arnab Chakraborty
Arnab Chakraborty

Reputation: 7472

The encryption/decryption algorithms doesn't change, no matter which language you use. Just use the encryption and decryption libraries available in the corresponding languages, you should be fine.

Upvotes: 2

Related Questions