To encrypt the direct communication between one j2eeweb and another php Server, please give us some ideas about how to encrypt the php algorithm data using java.
A simple symmetric encryption algorithm is required to encrypt the transmitted data when a java server communicates directly with the php server. However, I will use php a little bit. please give me some ideas, do not use php Extensions. php is 5.1 and java is 6. thank you very much.
Reply to discussion (solution)
Use php to implement the java encryption and decryption algorithm, and then use curl to simulate data interaction.
Symmetric encryption is the simplest base64-encode, but not secure
Http://php.net/manual/en/function.base64-encode.php
Json (xml) + 3des is not acceptable,
You can use signatures/signatures to ensure data security.
Http://eslizn.com/archives/rsa-signature-verify-for-php.html a while ago