How do we prove evidence was not changed?
We protect the original with write blocking, copy it bit by bit, compare hash values of the original and copy, and keep notes and custody records of...
A hash value is a short fixed-length fingerprint made from data by a hash function. If even one bit of the data changes, the hash changes, so hashes help show data is unchanged.
A hash function reads any amount of data and produces a fixed-length result called a hash value or digest. The same data always gives the same hash. A tiny change in the data gives a very different hash.
You cannot rebuild the data from the hash. It is a fingerprint, not a compressed copy.
MD5 and SHA-1 are older. Researchers have shown that attackers can create two different inputs with the same hash for these, called a collision. SHA-256 belongs to the SHA-2 family defined by NIST in the Secure Hash Standard, and it is widely used now. Many labs record more than one algorithm. Follow your lab's own procedure.
Hashes are used in several ways.
A normal hash changes completely if one byte changes. A fuzzy hash, such as one made by ssdeep, gives a similarity score. It helps find files that are similar but not identical.
| MD5 | SHA-1 | SHA-256 | |
|---|---|---|---|
| Length of result | 128 bits | 160 bits | 256 bits |
| Known collisions | Yes | Yes | None known |
| Common use today | Legacy checks | Legacy checks | Main choice |
An examiner images a drive and the tool reports a SHA-256 hash for the drive. After copying the image to a server, the examiner hashes the copy. Both values match, so the copy is an exact copy of the image.
Any change to the data would change the hash. So if both hashes are equal, the data is the same for practical purposes.
MD5 has known collisions, so it is weak for proving that data was not altered on purpose. SHA-256 has no known collisions.
Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.