CRC8-检查PHP [英] CRC8-Check in PHP
本文介绍了CRC8-检查PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在PHP中生成CRC-8校验和?
How can I generate a CRC-8 checksum in PHP?
推荐答案
是否必须为CRC8?
Does it have to be CRC8?
在PHP.net上,有一个 CRC16 的非常简单的实现. >和 CRC32 的本地版本.
On PHP.net there is an really simple implementation of CRC16 and a native version of CRC32.
如果必须是CRC8,我建议您从Marius指出的Wikipedia页面上的伪代码中进行编码.
If it does have to be CRC8 I would recommend coding something from the pseudo code on the wikipedia page Marius pointed out.
这篇关于CRC8-检查PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文