checksum

A small value calculated from data and stored or sent with it, so the data can later be checked for accidental errors.

In more detail

If recalculating the checksum gives a different answer, the data has changed. Simple checksums, such as the check digit at the end of a card number, catch typing and transmission mistakes, and cryptographic hashes such as SHA-256 are often used as stronger checksums for files. A plain checksum does not stop deliberate tampering, because an attacker who changes the data can simply recompute it; that needs a keyed hash or a digital signature.

Examples

sha256sum -c manifest.sha256
MD5 still appears in old checksums: fine for spotting accidental corruption, useless against an attacker

Related terms

Taught in

References

Certification courses