How does the crc32 function in PHP verify data?

Source: Internet
Author: User
Tags crc32
In PHP, how does the crc32 function verify data? RT. if not, does PHP have other methods to check data ?, Any hash algorithm can be used. CRC (data) generates a fingerprint and sends the data and fingerprint together to the other party. The other party obtains a fingerprint with the same CRC (data, compared with the fingerprint you sent him, do you know whether the data has been tampered with during transmission? How does the crc32 function in PHP verify data?
RT. if not, does PHP have other methods to check data?

------ Solution --------------------
Any hash algorithm can be used. CRC (data) generates a fingerprint and sends the data and fingerprint together to the other party. The other party obtains a fingerprint with the same CRC (data, compared with the fingerprint you sent him, do you know whether the data has been tampered with during transmission?

In addition, the premise of data verification is that no one knows during the data transmission process, and no one listens to and tamper with your communication link. what should I do? Of course it is SSL.

SSL + CRC is called complete verification.

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.