Hashes and integrity: frequently asked questions
Short answers to the most common doubts about hash values, algorithms and the integrity of digital evidence.
Can a file be rebuilt from its hash value?
No. A hash function is one-way: the value does not contain the file and does not allow it to be recovered. That is why it can be shared without revealing the content.
If I rename a file, does the hash change?
No: the value depends on the content, not the name. It changes if even one byte of content is modified, for example by saving it again with another program.
Is MD5 still acceptable?
On its own it is not recommended for important evidence, because MD5 collisions can be constructed. It is fine alongside SHA-256, for example to compare with older acquisitions.
Can I compute the hash on a website?
Better not for evidence: it means uploading the file to a third-party server. Operating-system tools perform the same calculation locally.
Do two identical videos downloaded on different days have the same hash?
Only if the files are identical bit for bit. Platforms may re-encode videos or serve different versions: two downloads of the same content may therefore have different values without any tampering.
Does the hash prove a file’s date?
No. Linking a value to a date requires a timestamp or another reliable time reference.
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: the step-by-step procedure
How hash values are computed, documented and verified during a forensic acquisition and in the later stages.
Hashes and integrity: the tools
From commands built into operating systems to forensic software: what is used to compute and verify hash values.
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.