To encrypt the direct communication between one j2eeweb and another php Server, please give me some advice.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.