Reading settings
What is a cryptographic hash?
Published 4 November 2026
A cryptographic hash is a fixed-length value calculated from digital data, such as a file. It acts as a fingerprint of the file’s exact contents: changing even one byte produces a different hash with overwhelming probability. Comparing hashes helps establish whether two files contain exactly the same data.
How does it work?
A hash function processes a file and produces a value, usually displayed as a string of letters and numbers. The same file processed with the same hash function always produces the same result. Calculating a hash is a straightforward operation that can be performed locally on your computer; there is no need to upload the file.
For example, you could calculate the hash of a design file before sending it to a collaborator. If you later use the same hash function to calculate the hash of the returned file and obtain the same value, that is strong evidence that its contents have not changed. If the values differ, the files differ—even if the change is not immediately visible.
Changes to information stored inside the file, such as embedded metadata, can also change its hash. Renaming a file ordinarily does not, because its filename is separate from its contents.
What is SHA-256, and how long is its hash?
SHA stands for Secure Hash Algorithm. SHA-256 is a widely used member of the SHA-2 family, standardised by NIST. SHA-2 and SHA-3 are both current families of cryptographic hash algorithms; the older SHA-1 is being phased out. NIST’s overview describes these standards.
The “256” refers to the length of the result: 256 bits, or 32 bytes, usually displayed as 64 hexadecimal characters using the digits 0–9 and letters a–f. A short text file and a large design archive both produce a SHA-256 hash of exactly that length. The hash’s length depends on the algorithm, not on how much information the file contains.
A longer hash provides more possible values: SHA-256 has 2²⁵⁶ possible results. Two different files can theoretically have the same hash, which is called a collision, but finding such a pair is computationally infeasible with a secure algorithm such as SHA-256. This is why a matching hash is strong evidence of identical contents, rather than a mathematical guarantee that every possible file has a unique fingerprint.
How much difference can one character make?
These sentences differ only in their final punctuation: a full stop versus an exclamation mark.
| Sentence A | Sentence B |
|---|---|
| This design is original. | This design is original! |
SHA-256fff9b3e35c51928358c4430038b00f47fe26f3f9f4cfd557c05341573d85a959 |
SHA-256068c0525b996503d75220f6f9fb3db9dd2195b5313ac16411076d608297f78c8 |
Each hash contains 64 hexadecimal characters, split across four lines here for readability. The hashes were calculated from the exact sentences shown, encoded as UTF-8, including the final punctuation and with no trailing space or line break.
Changing just the punctuation produces a very different hash. The same principle applies to files: changing a single byte—even in metadata that is not visible when you open the document—changes the hash with overwhelming probability. Similar-looking hashes do not indicate similar files.
What does a hash tell you about a file?
A hash helps identify an exact digital version and detect changes. On its own, it does not establish when the file existed, who created it or who owns the rights to its contents.
To establish a dated record, the hash needs to be connected to reliable evidence of time, such as a digital timestamp. To connect the file to a person or development process, additional records are needed.
Does a hash reveal the file’s contents?
A cryptographic hash is not an encrypted copy of the file, and it cannot be decrypted to recover the original.
A timestamp provider can receive the hash rather than the file itself. Check what actually reaches its server: only a fingerprint, an encrypted file, or readable contents. If the service also stores the file, check whether encryption happens before upload and who can access the decryption keys.
Why does this matter for intellectual property?
A hash lets a certificate or timestamp refer precisely to a particular design, document, source-code archive or other digital file. The file itself does not need to be included in the timestamp record.
Keep the exact certified file alongside its certificate. Later verification depends on recalculating its hash and checking that it matches the certified value. A hash cannot reconstruct a missing file or restore an altered file to its certified version.
Sources
- 1.National Institute of Standards and Technology. Hash Functions . SHA-2 and SHA-3 families, fixed-length outputs and security properties. Accessed 4 November 2026
- 2.National Institute of Standards and Technology. Secure Hash Standard (SHS) . FIPS 180-4; hash algorithms and message digests. August 2015
- 3.C. Adams, P. Cain, D. Pinkas and R. Zuccherato. Internet X.509 Public Key Infrastructure Time-Stamp Protocol . RFC 3161; introduction and sections 2.1, 2.2 and 2.4.1. August 2001
