Technology reading / 04
Has the file changed?.
A familiar filename is a label. A checksum offers another kind of comparison: one based on the data itself.
General educational information
Compare the contents
A checksum is a value calculated from data according to a specified method. It can help detect changes introduced while a file is copied, stored or transferred. The sender and receiver calculate values using the same method and compare the results.
Methods have limits
Different methods offer different protection. A simple error-detection checksum is suited to a different task from a modern cryptographic hash. Even a strong hash has a finite range of possible results, so it should not be described as a mathematically unique name for every possible file.
Imagine a hypothetical reference document with a published hash. After downloading, a reader compares a newly calculated value with that reference. Agreement is useful evidence about the bytes, provided the method and reference are appropriate.
The reference matters
A value supplied beside a file is only as useful as the route used to obtain it. If an untrusted source replaces both, their agreement does not establish authenticity. Trusted publication channels and digital signatures address questions that a bare comparison cannot answer alone.
Matching content also does not mean the material is safe, accurate or suitable. A perfectly preserved error remains an error. Treat integrity checking as one specific check within a larger review, and keep the original source and method visible when recording a result.
Further reading: Microsoft: File hash concepts