What a CRC does
A cyclic redundancy check is a short number worked out from a block of data. The sender adds it to the message and the receiver works it out again. If the two don't match, something got corrupted on the way. CRCs are very good at catching the errors that happen on real wires, such as a burst of flipped bits. They are not a security measure: anyone can change the data and recalculate the CRC. Use a cryptographic hash for that.
Why there are so many
A CRC is defined by its width, its polynomial, its starting value, whether bits are processed in reflected order, and a final XOR. Change any one and the answer changes, which is why two "CRC-16" implementations often disagree. The names here follow the CRC RevEng catalogue. Each one's standard check value is its result for the text 123456789, which this page uses as the default so you can compare.
| Where you'll meet it | Variant |
|---|---|
| Ethernet, ZIP, PNG, gzip | CRC-32/ISO-HDLC (check value CBF43926) |
| iSCSI, ext4, Btrfs, SSE4.2 instructions | CRC-32/ISCSI, also called CRC-32C |
| Modbus RTU | CRC-16/MODBUS, sent low byte first |
| XMODEM | CRC-16/XMODEM |
| DS18B20 and other 1-Wire devices | CRC-8/MAXIM-DOW |
| SMBus packet error checking | CRC-8/SMBUS |