Fletcher-8 checksum for small data integrity checking in embedded systems Uses two 4-bit running sums with modulo 15 for enhanced error detection.
| 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 |
Status: π Educational Only
| 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 | β |
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 |