Hash Lab

Checksum

Adler-32

Designed by Mark Adler for zlib (1995). Adler-32 is a Fletcher-style checksum: two 16-bit running sums combined into a 32-bit output. It is faster than CRC-32 by a wide margin but noticeably weaker for short inputs , the trade-off is deliberate for the inner loop of DEFLATE.

How it works, in one paragraph

Maintain two 16-bit accumulators, a and b, both modulo 65521 (the largest prime < 216). For each byte x: a = (a + x) mod 65521, b = (b + a) mod 65521. Output (b << 16) | a. The trailing b integrates position information so byte reordering changes the digest.

At a glance

Output32 bits (8 hex chars)
DesignerMark Adler (1995)
StandardRFC 1950 (zlib)
Throughput3-10 GiB/s; very SIMD-friendly
StatusNon-cryptographic; weaker than CRC-32 on short inputs

Where it shows up

Limitations

References

Visualize

Adler-32 on your input

11 bytes · 0-bit digest

Hex digest

Bit grid (0 bits, teal = 1, slate = 0)

Byte pixel art (0 bytes, hue = byte value mod 360°)

Avalanche , flipping the lowest bit of the first input byte changed 0 of 0 output bits

Test Your Knowledge

Quick MCQ check on this algorithm

Start Quiz →

AI Summary

Summarize this page in your favorite LLM