PHP中crc32函数怎么用来校验数据

WBOY
Release: 2016-06-13 13:22:58
Original
1750 people have browsed it

PHP中crc32函数如何用来校验数据?
RT,如果不能,PHP有其他方法检查数据吗?

------解决方案--------------------
随便什么哈希算法都行啊,CRC(数据)得到一个指纹,把数据和指纹一起发给对方,对方同样CRC(数据)得到一个指纹,和你发给他的指纹一比较不就知道传输途中是否篡改了吗?

另外,校验数据的前提是数据传输过程中没人知道,没人偷听与篡改你们的通信链路,那怎么办? 当然是SSL了。

SSL+CRC才叫完整的校验。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!