Hawkynt

Fletcher-16

Fletcher-16 checksum used in network protocols and data transmission Uses two 8-bit running sums with modulo 255 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 0000

Vector 2 โ€” Single byte โ€˜aโ€™

Source: Educational test vector

Field Value
input 61
expected 6161

Vector 3 โ€” String โ€˜abcdeโ€™

Source: Educational test vector

Field Value
input 6162636465
expected c8f0

โ† All algorithms