C-client software needs to communicate with PHP. How is the most secure mechanism?

Source: Internet
Author: User
The client software needs to communicate with PHP and upload the user's machine code to the database through the communication with PHP. What kind of mechanism is the safest? Attackers will not capture packets to the communication mode, so as to send false information to PHP. The client software needs to communicate with PHP and upload the user's machine code to the database through the communication with PHP, what is the most secure mechanism? Packets will not be captured to the communication mode to send false information to PHP.

Reply content:

The client software needs to communicate with PHP and upload the user's machine code to the database through the communication with PHP. What kind of mechanism is the safest? Packets will not be captured to the communication mode to send false information to PHP.

This is a good question. Many PC software programmers are not very careful about this issue.

I have done something about artificially contaminated domain name resolution and counterfeit Authentication servers. The biggest feeling of doing so is that programmers who only transmit simple http plain text are really grateful! :-D

It is really easy to prevent packet capture and man-in-the-middle attacks, and even forge requests or servers. Https, once and for all. The SSL Certificate for domain names recognized by the CA cannot be copied.

If you still stick to http, you can also accept asymmetric encryption and handshake. However, please believe that the security risks and programmer-hour investment will not save more money than the https certificate fee.

However, ensuring that communications are not intercepted and analyzed in the middle is only a security aspect. As a PC software, the trouble is that local debugging analysis (generally speaking, software cracking) is hard to prevent. If the execution logic of the software itself is stolen and modified, all security will no longer exist. This is from another perspective and does not show analysis. Note: encryption is a means, while security is a system.

Note: The focus of this problem should be the client-server communication method, rather than PHP. We recommend that you replace the server language with other languages.

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.