A contract leaves your outbox as an attachment, and from that moment you no longer control the copies. The other side saves it, forwards it, prints it, and may edit a copy for discussion. Weeks later someone produces a version and says: this is the one you sent. If the two files differ by one clause, or one digit in a price, how do you show which file actually left your machine?
A fingerprint answers that narrow question. Before you send, you run the final file through a hash tool and record the digest it produces. That string of characters is fixed by the file's exact bytes, so any later copy can be checked against it. This guide walks through the routine with the free SHA Hash Generator on Ovatly, which works in your browser and never uploads the file.
Contents
- Quick answer
- What a fingerprint actually is
- Why the digest belongs in your records, not only in the email
- How to fingerprint a contract file, step by step
- Worked example: three characters that show the whole idea
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Open the SHA Hash Generator, choose SHA-256, switch to File mode, select the final contract file and press Compute. Copy the 64-character hex digest into your own records, next to the file name and the date you sent it, and only then attach the file and send the email as usual. Later, any copy can be hashed again and compared: the same digest means the same file, byte for byte; a different digest means a different file, and the honest next step is comparing versions rather than arguing from memory.
What a fingerprint actually is
A hash is a fixed-length digest computed from a file's bytes. Feed the same bytes in and you always get the same digest out. Change one byte and the digest changes completely, not slightly, which is what makes it useful as a fingerprint: there is no "close enough" result to argue about.
For SHA-256 the digest is 64 hexadecimal characters. The generator computes SHA-1, SHA-256, SHA-384 and SHA-512 through the browser's Web Crypto API, and SHA-256 is the right default for a record you may rely on later, because no collision, two different files producing the same digest, has ever been found for it in practice. SHA-1 survives only for checking old published checksums, where collisions have already been demonstrated.
One boundary is worth stating early: a hash proves that bytes match a reference. It does not prove who published those bytes. The fingerprint ties a file to the moment you recorded it, and your records are what give that moment its weight.
Why the digest belongs in your records, not only in the email
It is tempting to paste the digest into the email body and be done. That helps, and you can still do it, but it should not be the only copy. If the contents of the thread are ever disputed, a reference that lives only inside the disputed thread is weaker than one kept separately.
Keep a small record of your own: file name, version if you use them, the digest, and the date and time you sent it. A line in a notebook, a spreadsheet or a notes file is enough. What matters is that the record was written at sending time, by you, and stored somewhere the other side cannot edit. That combination is what turns a string of characters into evidence you can calmly point to later.
How to fingerprint a contract file, step by step
- Finish the contract first. Every edit, however small, changes the bytes, so the fingerprint must be taken from the exact file you are about to attach, after the last change.
- Open the SHA Hash Generator and pick SHA-256 as the algorithm.
- Switch to File mode and select the contract file. The file is read locally in your browser and never leaves your device.
- Press Compute and copy the hex digest the tool shows.
- Write the digest into your own records with the file name and the send date. Then attach the file and send the email.
Worked example: three characters that show the whole idea
The mechanics are easiest to see at the smallest possible scale. A text file containing exactly the three characters abc, with no trailing newline, hashes under SHA-256 to a published test value from the FIPS 180-4 standard:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Now press Enter once at the end of that file and hash it again. The digest is completely different, because text is hashed as UTF-8 and a trailing newline counts as part of the input. Nothing about the visible content changed, yet the fingerprint did, because the bytes did.
A contract PDF works exactly the same way, just with more bytes. The digest you record is a fingerprint of that precise file: the same file always produces it, and anything else, an edited clause, a re-exported PDF, a version saved by a different program, produces a different one.
Limitations and honest tradeoffs
The fingerprint proves the file is the version you sent. It says nothing about what the contract means, whether its terms are fair, or whether the other side read or accepted them. Keep it in its lane: it settles which file, not what the file obliges anyone to do.
Any re-save or edit produces a new file that needs a new fingerprint. If you send a revised version next week, fingerprint that version too and keep both records, labelled by date, so the trail shows each version you sent rather than overwriting the first.
Two practical notes. Very large files are read fully into memory by the tool, so an enormous scanned bundle may be slow. And the fingerprint is only as trustworthy as the record keeping around it: a digest written down at sending time is a reference, while a digest produced later, from a file you merely believe is the sent one, proves much less.
Common mistakes
- Fingerprinting the draft, then editing. The digest belongs to the earlier bytes. Hash after the final edit, every time.
- Keeping the digest only inside the email. Record it separately, with the file name and date, where the other side cannot touch it.
- Hashing a re-saved copy later and calling it the original. A re-save is a new file. If it does not match, that tells you the bytes differ, not which version is genuine.
- Comparing digests from different algorithms. An SHA-1 value and an SHA-256 value for the same file are different strings of different lengths. Always compare like with like.
- Treating a match as proof of agreement. The fingerprint settles which file was sent. Signatures and acceptance are a separate matter.
FAQs
Which algorithm should I use for a contract file? SHA-256. It is the right default for a fingerprint you may rely on later: no collision has ever been found for it in practice, and its 64-character digest is the value other tools and checkers expect. Keep SHA-1 only for verifying old published checksums.
Does a matching fingerprint prove the other side agreed to the contract? No. The fingerprint proves the file is byte for byte the version you hashed. Agreement, signatures and the meaning of the clauses are separate questions that a hash cannot answer.
I re-saved the contract and the fingerprint changed. Did something go wrong? Almost certainly not. A hash covers the exact bytes of the file, so any edit, re-save or format change produces a different file with a different digest. Fingerprint the new version and record the new digest alongside the old one.
Where should I keep the digest? In your own records, next to the file name, the version and the date you sent it. A digest kept only inside the email is weaker, because a disputed thread is exactly where you do not want your only reference to live.
Is the contract uploaded to a server when I hash it? No. The generator runs in your browser using the Web Crypto API, and the file never leaves your device. Very large files are read fully into memory, which is the only practical limit to be aware of.
Conclusion
Fingerprinting takes under a minute: finish the file, hash it with the SHA Hash Generator, and file the digest with the name and date before the email goes out. From then on, the question of which version was sent has a factual answer instead of two memories. The checking side of the same routine, where a recorded hash is used to test a file someone hands back to you, is covered in our guide to proving a log file was not altered with a hash check. For more in this series, see the Security and Privacy guides.
References
- NIST, FIPS 180-4, Secure Hash Standard, the specification behind SHA-256 and its published test values: https://csrc.nist.gov/pubs/fips/180-4/upd1/final
- MDN Web Docs, on the SubtleCrypto digest method the browser uses to compute hashes: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest