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.sha256MD5 still appears in old checksums: fine for spotting accidental corruption, useless against an attackerRelated terms
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- Luhn check — A simple checksum formula whose last digit lets software spot mistyped card numbers and other identification numbers.
- HMAC — A way of combining a secret key with a hash function to produce a tag that shows a message came from someone holding the key and was not changed.
- corruption — Damage to stored or transmitted data that leaves it wrong, incomplete or unreadable.
Taught in
- Guardrails, Privacy And Governance — AI Engineering: LLM Apps, RAG & Agents
- Regulatory Compliance: SOC 2, HIPAA, GDPR & PCI-DSS — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Data Loss Prevention & Egress Monitoring — Cybersecurity Fundamentals, GRC & Cryptography