Hawkynt

Adler-16

Adler-16 checksum for lightweight error detection in embedded systems Uses two 8-bit running sums with modulo 251 for fast error detection.

Properties

Property Value
Category Checksums
Sub-category Simple Checksum
Security status πŸŽ“ Educational Only
Complexity Beginner
Inventor Mark Adler
Year 1995
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/checksum/adler.js

Security

Status: πŸŽ“ Educational Only

Known vulnerabilities

Issue Description Mitigation
Not Cryptographically Secure Use cryptographic hash functions (SHA-256, SHA-3) for security purposes β€”
Weak for Short Messages Adler checksums can have poor distribution for very short inputs β€”
Zero Byte Weakness Sequences of zero bytes can produce predictable patterns β€”

Documentation

References

Test vectors

3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” Empty string

Source: RFC 1950 style - empty gives base value

Field Value
input (empty)
expected 0001

Vector 2 β€” Single byte β€˜a’

Source: Educational test vector

Field Value
input 61
expected 6262

Vector 3 β€” String β€˜abc’

Source: Educational test vector

Field Value
input 616263
expected 572c

← All algorithms