I need to send a chain encoded (with Java) thought http post and decode it once received in the php server. How 开发者_开发知识库can I do it?
The security level required is low-mid
For low security I would say make sure your java client and php code have the same passphrase and just use DES excryption. An example of encrypting using DES in Java, Php Example The excryption type you use doesn't matter as long as both your java client and php server have the same passphrase.
Here is one example of Java/php encryption:
http://schneimi.wordpress.com/2008/11/25/aes-128bit-encryption-between-java-and-php/
精彩评论