KNOWLEDGE

Working out a checksum yourself

Two commands, no extra software: how to check for yourself on Windows, macOS and Linux whether a file is unchanged since it was exported.

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

On Linux and macOS

In the terminal, sha256sum filename is enough (macOS: shasum -a 256 filename). The result is a single line of 64 characters. It has to match the value in nachweis.txt. Character for character.

On Windows

In PowerShell: Get-FileHash .\filename -Algorithm SHA256. The output shows the value in capital letters; the case makes no difference, only the sequence of characters.

What a mismatch means

If the value does not match, the file was altered after the export or the wrong file was checked. Both are worth knowing before you draw conclusions from it.

Recomputing the overall checksum

The list in nachweis.txt is in exactly the format sha256sum produces: value, two spaces, path. Write those lines into a file and run LC_ALL=C sort liste.txt | sha256sum over it. The result has to match the overall checksum in the record. That single step shows that no file is missing and none was added.

The usual culprits

The ZIP file was checked instead of the file inside it. A space travelled along when copying. The value came from a different export of the same case. Renaming, by the way, changes nothing: the checksum depends on the content, not the name.

The point of the exercise: you do not have to take the software's word for anything. Anyone who works out the value themselves is checking the statement, and not the supplier.

More articles About the evidence bundle For OSINT