Hawkynt

Fletcher-8

Fletcher-8 checksum for small data integrity checking in embedded systems Uses two 4-bit running sums with modulo 15 for enhanced error detection.

Properties

Property Value
Category Checksums
Sub-category Simple Checksum
Security status πŸŽ“ Educational Only
Complexity Beginner
Inventor John G. Fletcher
Year 1982
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/checksum/fletcher.js

Security

Status: πŸŽ“ Educational Only

Known vulnerabilities

Issue Description Mitigation
Not Cryptographically Secure Use cryptographic hash functions (SHA-256, SHA-3) for security purposes β€”
Collision Vulnerability Use for error detection only, not for data integrity in security contexts β€”

Documentation

References

Test vectors

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

Vector 1 β€” Empty string

Field Value
input (empty)
expected 00

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

Source: Educational test vector

Field Value
input 61
expected 77

Vector 3 β€” String β€˜abc’

Source: Educational test vector

Field Value
input 616263
expected 19

← All algorithms