TECHNICAL KNOWLEDGE · Digital evidence, chain of custody & preservation
How can I check whether two digital files are identical?
Last reviewed · SkyView documentation
DIRECT ANSWER
Calculate a SHA-256 digest for each file and compare the results. Different digests prove the byte contents differ; matching digests give extremely strong evidence that they match.
How it works
On Linux, run sha256sum filename. On macOS, run shasum -a 256 filename. On Windows PowerShell, run Get-FileHash -Algorithm SHA256 -LiteralPath filename. Compare the entire digest, not just the first few characters. A rename alone does not change file bytes; resaving or editing metadata may change them.
How SkyView uses it
An authorized recipient of a SkyView original can independently hash the downloaded file and compare it with a trusted record of the original digest. A web preview or watermarked derivative is not expected to match the original.
Primary sources and supporting references
Official standards, government agencies and technical documentation.
- NIST Secure Hash Standard (FIPS 180-4)csrc.nist.gov
- NIST Digital Evidence Preservation (NISTIR 8387)www.nist.gov