Checksum & Non-Crypto
CRC, Adler32, XXHash and other checksum algorithms
What is Checksum & Non-Crypto?
Checksum algorithms are fast and simple algorithms used to check data integrity. Unlike encryption or hash algorithms, checksum algorithms do not serve a security purpose - they are only used to detect whether data has been corrupted. To make a simple analogy, a checksum is like a control number on a package - it quickly checks whether the package has been damaged. Checksum algorithms are widely used in areas such as file transfer, data storage, and error detection.
Use Cases
- File transfer verification
- Data storage checking
- Network packet checking
- Error detection
- Data compression
- Debugging
Key Features
- Very fast processing
- Low memory usage
- Simple implementation
- Error detection
- No security purpose
Algorithm Comparison
| Algorithm | Security | Speed | Use Cases |
|---|---|---|---|
| CRC32 | No cryptographic security; error detection / speed only | Very Fast | File transferNetwork protocolsFast error detection |
| CRC64 | No cryptographic security; error detection / speed only | Very Fast | File transferNetwork protocolsFast error detection |
| Adler32 | No cryptographic security; error detection / speed only | Very Fast | File transferData compressionFast error detection |
| XXHash32 | No cryptographic security; error detection / speed only | Very Fast | High-performance applicationsLarge file checking |
| XXHash64 | No cryptographic security; error detection / speed only | Very Fast | High-performance applicationsLarge file checking |
| XXHash128 | No cryptographic security; error detection / speed only | Very Fast | High-performance applicationsLarge file checking |
| XXHash3 | No cryptographic security; error detection / speed only | Very Fast | High-performance applicationsLarge file checking |
| FNV-1a 32-bit | No cryptographic security; error detection / speed only | Very Fast | Hash tablesBloom filtersFast hashing needs |
| FNV-1a 64-bit | No cryptographic security; error detection / speed only | Very Fast | Hash tablesBloom filtersFast hashing needs |
* Comparisons are relative to reference/hardware acceleration on 64-bit CPU
XXHash and FNV
Very fast non-cryptographic hash functions.
Related Standards
- • ISO/IEC 13239 (CRC)
- • RFC 1950 (Adler32)
- • XXHash: Public domain