Hashes and integrity: the step-by-step procedure
How hash values are computed, documented and verified during a forensic acquisition and in the later stages.
Computing a hash takes a few seconds; doing it at the right moment and documenting it well is what gives it value. Here is the typical sequence.
- 01
Hash the original
During acquisition, through a write blocker, compute the value of the original medium or file.
- 02
Hash the copy
Once the copy is complete, compute the value of the forensic image or copied file.
- 03
Compare
The two values must match character by character. If they do not, repeat the acquisition and document what happened.
- 04
Record
Enter algorithm, values, tool and version, date and time with time zone in the record.
- 05
Protect the list
Digitally sign or timestamp the file containing the values.
- 06
Verify at every step
At every handover, before every analysis and before filing, recompute the value and record the outcome.
For individual files
When individual files are acquired rather than a whole disk — chat exports, downloaded videos, documents handed over by the client — it is wise to compute the value of each file and collect them in a list. The list itself then becomes a document to protect.
Hashes and integrity: the tools
From commands built into operating systems to forensic software: what is used to compute and verify hash values.
The pages of this topic
Back to the overviewHashes and integrity: how it works
The properties that make a hash function suitable for forensic use and why MD5 and SHA-1 are no longer enough on their own.
Hashes and integrity: pitfalls to avoid
Values computed too late, weak algorithms, the wrong files: the mistakes that take away the value of the hash seal.
Hashes and integrity: value in court
How the hash value meets the requirement to preserve original data and prevent their alteration, and its limits before a judge.
Hashes and integrity: a case study
A dispute over a video filed in a lawsuit: how hash values settle the question of whether the copies match.
Hashes and integrity: the checklist
The essential checks for using hash values correctly during an acquisition and in the later stages.
Hashes and integrity: frequently asked questions
Short answers to the most common doubts about hash values, algorithms and the integrity of digital evidence.