【发布时间】:2012-05-02 00:00:40
【问题描述】:
我需要使用 PHP 获取文件的 CRC64 校验和。
使用此代码
file_put_contents('example.txt', 'just an example');
echo hash_file('crc32', 'example.txt');
我得到 CRC32 校验和“c8c429fe”;
但我需要使用 CRC64 算法获得校验和(
)
我从这里拿的:http://en.wikipedia.org/wiki/Cyclic_redundancy_check
如何在 PHP 中实现这种散列算法?
【问题讨论】:
-
在php.net/crc32查看cmets...
-
Morfi's 完成了这项工作。但是,您没有将其标记为解决方案。