Hawkynt

Damm

Damm algorithm using quasigroup of order 10 for check digit calculation. Detects ALL single-digit errors and ALL adjacent transposition errors. Simpler than Verhoeff with same error detection. Invented by H. Michael Damm in 2004.

Properties

Property Value
Category Checksums
Sub-category Check Digit
Security status 🎓 Educational Only
Complexity Beginner
Inventor H. Michael Damm
Year 2004
Origin 🇩🇪 Germany
Source algorithms/checksum/damm.js

Security

Status: 🎓 Educational Only

No vulnerabilities are recorded for this implementation.

Notes

Documentation

References

Test vectors

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

Vector 1 — Damm validation

Field Value
input 353732
expected 04

Vector 2 — Simple sequence

Source: Damm calculation

Field Value
input 313233
expected 04

Vector 3 — All zeros

Source: Edge case

Field Value
input 303030
expected 00

← All algorithms