What is a hash value, and how does it show a file has not changed?

What is a hash?

A hash function takes a file of any size and produces a short string of characters. SHA-256, the most common choice for evidence, produces a 64-character value such as:

9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08

The same file always produces the same hash. A different file, even one differing by a single pixel, produces a completely different hash.

How does it show a file has not changed?

  1. When the file is received, its hash is calculated and recorded.

  2. Later, anyone can calculate the hash of the file again.

  3. If the two values match, the file is bit-for-bit identical to what was received.

What does a hash not show?

A matching hash shows

It does not show

The file has not changed since the hash was recorded

That the file is authentic

That two copies are identical

Who created the file


When the file was created


What happened to the file before it was hashed

That is why the moment of hashing matters. A hash recorded the moment a firm receives a file shows the file has not changed since receipt. Pairing it with an independent timestamp shows when the hash existed. See trusted timestamps.

How are hashes used in legal work?

  • Identifying exact duplicates in a set of files.

  • Verifying that a copy matches an original.

  • Supporting certifications under rules such as FRE 902(14).

  • Detecting any change to a stored file.

How can someone check a hash themselves?

Built-in tools can do it. On Windows, certutil -hashfile filename SHA256. On a Mac, shasum -a 256 filename. See how to verify a file.

Where Verin Legal fits

Verin Legal computes a SHA-256 hash of every item the moment it arrives, before anyone touches it, and records it with an independent timestamp in a per-matter chain.

Common questions

Can two different files have the same SHA-256 hash?

In theory, but no one has ever found two such files, and finding one on purpose is considered computationally infeasible.

Does a matching hash prove a photo is genuine?

No. It proves the file has not changed since the hash was recorded. It says nothing about what happened before that.

Related questions

  • What is a trusted timestamp (RFC 3161)?

  • How can someone verify that a digital file has not been altered?

  • What does tamper-evident mean for digital evidence?

See it live

Book a twenty-minute live demo with us. We will run a sample matter from the first client text to the finished record, and you can text a screenshot to it during the call and watch it come back dated and filed. If it is not useful, we will go away.

hash-values

A hash value is a short fixed-length code calculated from every bit of a file, using a published algorithm such as SHA-256. Change a single bit and the hash changes completely. If a file's hash today matches the hash recorded when it was received, the file has not changed since then.

What is a hash value, and how does it show a file has not changed?

What a hash value is, how SHA-256 works in plain terms, and how matching hashes show a digital file has not changed since it was recorded.

Evidence

What is a trusted timestamp (RFC 3161)?

How can someone verify that a digital file has not been altered?

What does tamper-evident mean for digital evidence?

{"@context": "https://schema.org", "@graph": [{"@type": "Article", "headline": "What is a hash value, and how does it show a file has not changed?", "description": "What a hash value is, how SHA-256 works in plain terms, and how matching hashes show a digital file has not changed since it was recorded.", "author": {"@type": "Person", "name": "Jared Jackson"}, "publisher": {"@type": "Organization", "name": "Verin Legal", "url": "https://verinlegal.com"}, "mainEntityOfPage": "https://verinlegal.com/evidence/hash-values"}, {"@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Can two different files have the same SHA-256 hash?", "acceptedAnswer": {"@type": "Answer", "text": "In theory, but no one has ever found two such files, and finding one on purpose is considered computationally infeasible."}}, {"@type": "Question", "name": "Does a matching hash prove a photo is genuine?", "acceptedAnswer": {"@type": "Answer", "text": "No. It proves the file has not changed since the hash was recorded. It says nothing about what happened before that."}}]}, {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "Home", "item": "https://verinlegal.com/"}, {"@type": "ListItem", "position": 2, "name": "Evidence", "item": "https://verinlegal.com/evidence"}, {"@type": "ListItem", "position": 3, "name": "What is a hash value, and how does it show a file has not changed?", "item": "https://verinlegal.com/evidence/hash-values"}]}]}