Close

crc16 python实现

CRC16的计算方法有很多种,前段时间工作中用到了crc-16/xmodem,由于对python不熟悉,花了些时间,在此记录一下。如果使用crc16的其他模式加密,可以在此基础上进行修改。

C语言的实现是别人提供的。

下面是根据上面的C语言版本实现的python版本:

 

另外,贴一个用于检验结果是否正确的crc16计算小工具

附件:CRC_Calc+v0.1

分享到: 更多

About pulller

pulller

3 thoughts on “crc16 python实现

  1. Howdy would you mind stating which blog platform you’re using?
    I’m looking to start my own blog in the near future but I’m having a difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems
    different then most blogs and I’m looking for something unique.
    P.S My apologies for being off-topic but I had to ask!

Comments are closed.