Unix System V checksum algorithm used by the βsumβ command. Simple sum of all bytes with modulo 32-bit arithmetic. Historical Unix utility for basic file integrity verification. Compatible with System V sum -s option.
| Property | Value |
|---|---|
| Category | Checksums |
| Sub-category | Unix Utility |
| Security status | π Educational Only |
| Complexity | Beginner |
| Inventor | AT&T Bell Labs |
| Year | 1983 |
| Origin | πΊπΈ United States |
| Source | algorithms/checksum/sysv-checksum.js |
Status: π Educational Only
No vulnerabilities are recorded for this implementation.
3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β Simple ASCII
Source: SYSV checksum
| Field | Value |
|---|---|
input |
68656c6c6f |
expected |
0214 |
Vector 2 β Single byte
Source: SYSV checksum
| Field | Value |
|---|---|
input |
42 |
expected |
0042 |
Vector 3 β Multiple bytes
Source: SYSV checksum
| Field | Value |
|---|---|
input |
01020304 |
expected |
000a |