Utilities

Checksums and non-cryptographic hashes

Checksums and non-cryptographic hashes detect accidental errors or distribute keys evenly across hash tables. They are designed for speed and statistical quality, not for resistance to a deliberate attacker, and provide no security.

130 algorithms 13 families Not cryptographic

CRCs, Adler-32, Fletcher and the Internet checksum are error-detecting codes for storage and transmission. Hashes such as xxHash, MurmurHash, CityHash, wyhash and FNV are tuned for hash tables, deduplication and fingerprinting of trusted data. All of them can be forged or made to collide with little effort by anyone who wants to.

Where inputs may be chosen by an attacker, for example keys in a hash table exposed to network requests, a keyed function such as SipHash should be used instead, and where integrity matters a MAC or cryptographic hash is required.

No security properties.

Items in this category are included for completeness and as building blocks. They must not be used where security matters.

Families

13
Adler-32standard

Mark Adler's fast 32-bit checksum used in the zlib format

1 variant · adler32
Cyclic redundancy checks (CRC)standard

Polynomial checksums for detecting accidental errors, from CRC-3 to CRC-82

113 variants · crc-10-atm crc-10-cdma2000 crc-10-gsm crc-11-flexray crc-11-umts crc-12-cdma2000 crc-12-dect crc-12-gsm crc-12-umts crc-13-bbc crc-14-darc crc-14-gsm crc-15-can crc-15-mpt1327 crc-16-cdma2000 crc-16-cms crc-16-dds-110 crc-16-dect-r crc-16-dect-x crc-16-dnp crc-16-en-13757 crc-16-genibus crc-16-gsm crc-16-ibm-3740 crc-16-ibm-sdlc crc-16-iso-iec-14443-3-a crc-16-kermit crc-16-lj1200 crc-16-m17 crc-16-maxim-dow crc-16-mcrf4xx crc-16-modbus crc-16-nrsc-5 crc-16-opensafety-a crc-16-opensafety-b crc-16-profibus crc-16-riello crc-16-spi-fujitsu crc-16-t10-dif crc-16-teledisk crc-16-tms37157 crc-16-umts crc-16-usb crc-16-xmodem crc-17-can-fd crc-21-can-fd crc-24-ble crc-24-flexray-a crc-24-flexray-b crc-24-interlaken crc-24-lte-a crc-24-lte-b crc-24-openpgp crc-24-os-9 crc-3-gsm crc-3-rohc crc-30-cdma crc-31-philips crc-32-aixm crc-32-autosar crc-32-base91-d crc-32-bzip2 crc-32-cd-rom-edc crc-32-cksum crc-32-jamcrc crc-32-mef crc-32-mpeg-2 crc-32-xfer crc-4-g-704 crc-4-interlaken crc-40-gsm crc-5-epc-c1g2 crc-5-g-704 crc-5-usb crc-6-cdma2000-a crc-6-cdma2000-b crc-6-darc crc-6-g-704 crc-6-gsm crc-64-go-iso crc-64-ms crc-64-nvme crc-64-redis crc-64-we crc-64-xz crc-7-mmc crc-7-rohc crc-7-umts crc-8-autosar crc-8-bluetooth crc-8-cdma2000 crc-8-darc crc-8-dvb-s2 crc-8-gsm-a crc-8-gsm-b crc-8-hitag crc-8-i-432-1 crc-8-i-code crc-8-lte crc-8-maxim-dow crc-8-mifare-mad crc-8-nrsc-5 crc-8-opensafety crc-8-rohc crc-8-sae-j1850 crc-8-tech-3250 crc-8-wcdma crc-82-darc crc16 crc32 crc32c crc64-ecma crc8
Fletcher checksumsstandard

Position-dependent sum checksums from 1982, cheaper than CRCs in software

2 variants · fletcher16 fletcher32
xxHashstandard

Yann Collet's extremely fast non-cryptographic hash family: XXH32, XXH64, XXH3 and XXH128

4 variants · xxh128 xxh3 xxhash32 xxhash64
CityHashunverified

Google's fast non-cryptographic string hash, optimised for short strings on x86-64

1 variant · cityhash
FNV hashunverified

The Fowler–Noll–Vo hash: a minimal multiply-and-XOR function for hash tables

2 variants · fnv-1 fnv-1a
Internet checksumunverified

The 16-bit ones-complement checksum of IPv4, TCP, UDP and ICMP headers

1 variant · internet-checksum
Jenkins lookup3unverified

Bob Jenkins's 2006 hash-table hash, used in the Linux kernel and many C libraries

1 variant · jenkins-lookup3
MetroHashunverified

J. Andrew Rogers's fast 64-bit non-cryptographic hash generated by algorithm search

1 variant · metrohash
MurmurHash3unverified

Austin Appleby's widely used multiply-rotate hash for hash tables

1 variant · murmurhash3
SpookyHashunverified

Bob Jenkins's 128-bit non-cryptographic hash for 64-bit machines

1 variant · spookyhash
rapidhashunverified

A wyhash-derived non-cryptographic hash tuned for speed across platforms

1 variant · rapidhash
wyhashunverified

Wang Yi's compact, very fast hash based on 64x64-to-128-bit multiplication

1 variant · wyhash