Hawkynt

SYSV-Checksum

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.

Properties

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

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 β€” 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

← All algorithms