KNOWLEDGE

What a SHA-256 checksum proves and what it does not

A checksum shows that a file is unchanged since it was created. About the time of creation and about the truth of the content it says nothing.

The same file once unchanged and once with a single character altered gives two completely different SHA-256 values

How it comes about

SHA-256 computes a value of 64 characters from the entire content of a file. The same content always gives the same value, whatever the machine and whatever the program. Anyone who has the file can work the value out with the tools already on their system: sha256sum on Linux and macOS, Get-FileHash on Windows.

Why a single character is enough

If one single byte changes, the value that comes out is completely different, never merely similar. There is no “almost the same”. That is why every later alteration shows up, including one that would be invisible in the image.

What it does not do

The checksum does not prove when the file came about: it is produced together with the file, and both come from the same machine. Nor does it prove that the content is accurate. An invented page can be captured just as easily as a real one. And it offers no protection against someone manipulating their own machine.

Why two files never share a value

SHA-256 has two to the power of 256 possible values, a number with 78 digits. Finding two different files with the same value is not feasible with anything available today. For older methods it has been demonstrated, which is why this is SHA-256 and not MD5 or SHA-1.

Where the value belongs

A checksum is of little use sitting next to the file in the same folder: whoever can change one can change the other. Note the value somewhere separate, in the case file, in an email to yourself, on a printout. The distance between file and value is what gives a later check its meaning.

A checksum is proof of integrity. It proves neither truth nor time. Anyone who needs independent proof of time needs a qualified timestamp from a trust service provider.

More articles About the evidence bundle For businesses