Document integrity verification: a reproducible file check
Compare a file with a trusted SHA-256 reference and record what the comparison actually establishes.

Start with a reference, not a result
A digest computed from a downloaded document is a useful identifier, but it does not establish that the document came from its claimed publisher. Obtain the expected digest through a separate authenticated channel, record the source and preserve the original bytes. Do not copy a digest from an unverified message that also contains the file.
Build a reproducible record
- Save the original file without resaving it in an editor.
- Record its name, size, acquisition date and reference source.
- Compute SHA-256 with the local integrity checker.
- Compare the full 64 hexadecimal characters, not a shortened prefix.
- Export the result and explain the remaining uncertainty.
Interpret a mismatch
Different digests establish different bytes, not necessarily different visible content. A PDF may have been re-exported, metadata may have changed, or the file may be corrupted. Keep both versions and obtain the authoritative copy before drawing a conclusion. A text comparison can help locate visible changes but does not replace the byte-level check.
Worked example
The UTF-8 bytes for abc have the SHA-256 digest ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Add a newline and the input changes. Use this example to test your method, never as a reference for an unrelated file.
Read the integrity guide and consult the Secure Hash Standard for algorithm context.