crccheck is a Python library (currently v1.3.1) for calculating various Cyclic Redundancy Checks (CRCs) and checksums from binary data. It includes over 170 CRC algorithms and simple additive/XOR checksums. The library maintains an active, though somewhat irregular, release schedule, with recent updates adding new CRC algorithms.
pip install crccheckVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to perform a quick CRC calculation on a single data block and how to process multiple data blocks sequentially. Input data should be in bytes or bytearray format.
Ensure your code uses `crccheck` for imports and `byteorder='big'` or `byteorder='little'` for endianness specification.
Convert string data to bytes using `your_string.encode('utf-8')` or `bytearray.fromhex('...')` before passing it to `crccheck` functions.For fragmented or streaming data, use an instance: `crc_inst = Crc32(); crc_inst.process(block1); crc_inst.process(block2); final_crc = crc_inst.final()`.
pip install crccheck
Convert your string data to bytes using `your_string.encode('utf-8')` or `bytes(your_string, 'utf-8')` before passing it to crccheck functions.Use the correct import path: `from crccheck.crc import Crc32`.
No dependency data recorded yet.