Verifying a SHA-256 sum

A SHA-256 sum is a file's fingerprint: changing one byte changes the whole sum. Here is how to compute it on Windows, macOS and Linux and how to compare it with the Backlumen export manifest.

In this guide

What a SHA-256 sum is

SHA-256 is a hash function: from any file it computes 64 hexadecimal characters. The same file always yields the same sum, and a file changed by even one character yields a completely different one. The file cannot be reconstructed from the sum, and in practice no other file with the same sum can be made. That is why a sum recorded at export time lets anyone check later that the file is the same file.

A sum proves integrity, not origin: it says the file has not changed since the sum was computed. It does not say who wrote the messages or whether they are true.

What Backlumen records at export

Every conversation export in Backlumen Explorer Pro creates manifest.json and a checksum file. The manifest holds the app version, the time of export and the time zone, the profile and options used, the case details, a description of the conversation with the number of all and exported messages, the source with the SHA-256 sum of the database in the backup, device data and the list of output files: the transcript, the index, attachments and previews, each with its size and sum. The CHECKSUMS.sha256 file uses the sha256sum format and covers every file including the manifest. After the export Backlumen shows the sum of the manifest itself, which you can copy with one button.

Module exports (photos, files, messengers, On My iPhone) create a manifest with the sums of the extracted files as well.

Compute the sum on Windows

Windows has two built-in tools. In the command prompt type certutil -hashfile conversation.pdf SHA256. In PowerShell type Get-FileHash .\conversation.pdf -Algorithm SHA256. Compare the result with the entry for that file in manifest.json or in the checksum file. Letter case does not matter.

  1. Open the export folder in File Explorer, click the address bar, type cmd and press Enter.
  2. Type the certutil -hashfile command with the file name and the SHA256 algorithm.
  3. Compare the 64 characters with the sum in the manifest. A match means the file is unchanged.

Compute the sum on macOS and Linux

On macOS use shasum -a 256 conversation.pdf, on Linux sha256sum conversation.pdf. The whole folder can be checked with one command: sha256sum -c CHECKSUMS.sha256 (on macOS shasum -a 256 -c) run inside the result folder prints OK next to every file or names the one that does not match. In the Polish interface the checksum file is called SUMY-KONTROLNE.sha256.

Good practice when handing over

Hand over the whole result folder or the ZIP together with the manifest and the checksum file. Give the recipient the manifest sum through a separate channel, for example in the cover letter or an e-mail, so that any file substitution is detectable. Do not edit the PDF after export, not even to add a comment; every change changes the sum. Keep the backup the export came from: the manifest holds the sum of its source database, so the export can be repeated and compared.

When the sums do not match

First make sure you compare the sum of the right file: every line of the checksum file starts with the sum and, after two spaces, gives the path relative to the result folder. A file opened and saved in a PDF editor, even without visible changes, has a different sum; so does a file passed through e-mail or a messenger that converted it into a preview. Take the original from the ZIP again and recompute. If the manifest sum matches but one file does not, only that file was changed; if the manifest sum itself differs, trust none of its sums and ask for a fresh export from the same backup.

Which plan do you need?

Free lets you check backup contents without exporting. Personal unlocks full access and ordinary export, such as HTML, CSV and JSON. A conversation PDF report with case details and a SHA-256 manifest is included in Pro and Business.

Frequently asked questions

What does a SHA-256 sum prove in court, and what not?

A matching sum shows that the file is byte for byte the same as at the moment of export, so it was not changed on the way. It does not prove who wrote a message, whether its content is true, or that the phone contained only what the backup holds. The guide on screenshots versus export compares the ways of securing messages. Information, not legal advice.

Why pass the manifest sum through a separate channel?

When the recipient gets the manifest sum in a cover letter or a text message and the files on a drive, they can check that the drive matches what the sender recorded at export. A sum sent together with the files only checks the consistency of the package itself.

What if the sums do not match?

Do not fix the file. Check that you are hashing the right file and that it was not opened in a program that saved it again. If the difference remains, ask for the package to be handed over again from the result folder or the ZIP, with the manifest sum through another channel.

Start with your backup

See what Free can read. Choose full access and export when you need them.