Stockertim Dictionary · Technology
Checksum
Also called checksums, file checksum, file hash, hash value, digest
In short
A short code calculated from a file's contents that changes if any part of the file changes, used to confirm that data have not been altered or to prove which version was used.
- Advanced
- Technology
- Checked
In detail
A checksum is a fingerprint for data. An algorithm reads every byte of a file and produces a short string of characters. Run it again on an identical file and you get the same string; change a single character, add a row or alter a decimal place, and the string comes out completely different. Simple checksums, such as those used on bank card numbers and network packets, catch accidental errors. Cryptographic hash functions, such as the SHA-2 family, make it practically impossible to produce two different files with the same result, so they can detect deliberate tampering too.
In data analysis, checksums give a cheap, precise way to record exactly which version of a file was used. A research notebook can print the hash of each input file at the start; anyone rerunning it can compare their hash with the recorded one and know immediately whether they have the same data. Data suppliers often publish checksums alongside downloads so users can confirm a file arrived intact.
A checksum shows only whether data are identical, not whether they are correct, complete or from a trusted source. If the original file contained an error, its checksum faithfully records that file. Older algorithms such as MD5 and SHA-1 are no longer considered secure against deliberate collisions, though they still detect accidental changes; security uses call for current algorithms recommended by bodies such as NIST.
Worked example
An analyst saves a price file and records its SHA-256 hash, starting 9f2c… . Months later a colleague reruns the model with a file of the same name.
- Compute the hash of the colleague's file: it starts 4a71…
- The hashes differ, so the files are not identical
The difference in results is traced to an updated data file, not to a change in the code.
In practice
Software and data downloads from public bodies, exchanges and open-source projects often list checksums. Reproducible research and model documentation record input file hashes, and version control systems identify every saved version by a hash.
Watch out
- Matching checksums prove the files are identical, not that the data are right.
- MD5 and SHA-1 are unsuitable where someone might tamper with the data on purpose.
Learn it properly
Official sources
- Hash function (glossary) · NIST Computer Security Resource Center
- Hash functions · NIST Computer Security Resource Center
Facts last checked on 4 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.