我可以使用PHP获取文件的CRC64校验和。
使用以下代码:
我得到了CRC32校验和"c8c429fe";
但我需要使用CRC64算法来获取校验和(参见下图): 我从这里获取了相关信息:http://en.wikipedia.org/wiki/Cyclic_redundancy_check 请问如何在PHP中实现这个哈希算法?
使用以下代码:
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中实现这个哈希算法?