CRC is polynomial division, not hashing
CRC treats data as a bit string, divides by a fixed generator polynomial, and keeps the remainder. It is built for error detection rather than collision resistance: bursts shorter than twice the polynomial width and any odd number of flipped bits are caught reliably. The same bytes produce different values under different models because polynomial, initial value, input and output reflection, and final XOR all vary. Seventy models are computed at once, grouped by width.
Steps
- Paste text or a hex byte string and pick the matching input format.
- Choose UTF-8 or GBK for the text encoding — decisive for non-ASCII content.
- Compute to get values grouped by width.
- Toggle uppercase hex, 0x prefix, 4-bit grouping, and C array or Python bytes output.
- Select a group or all models, then copy.
Why one input yields many values
Parameters differ. CRC-32 uses generator 0x04C11DB7, initial 0xFFFFFFFF, reflected in and out, with a final XOR of 0xFFFFFFFF. Change the initial value or drop reflection and every bit of the result moves. Always name the model: quoting a bare CRC32 value fails in integration because the peer may run CRC-32/MPEG-2 or CRC-32C. When checksums disagree, confirm the model before doubting the data.
Width versus detection power
Eight bits distinguish only 256 states and miss longer bursts; sixteen suits short frames; thirty-two suits files and firmware; sixty-four suits large archives. Wider means fewer misses at higher cost. Random-error miss probability runs about two to the minus width, so a 32-bit model misses roughly one in four billion random corruptions — ample for most transport and storage.
Common problems
Encoding mismatch: the same Chinese text in UTF-8 and GBK has different bytes and therefore different checksums. Feeding hex text without selecting the hex format checksums twelve characters instead of six bytes. Confusing initial value with final XOR breaks everything. Truncated display hides the true width. And CRC cannot resist tampering — an attacker can craft different data with the same checksum.
Scope:CRC fits transport checks, storage checks, firmware integrity and protocol trailers. It does not fit cryptographic verification, where HMAC or signatures belong, nor deduplication identifiers, which need collision resistance, nor hash-table keys, which need even distribution. Per-line versus whole-input batching matters too: the wrong switch checksums the entire blob as one frame.