What is a file hash (SHA-256)?

A file hash is a short digital fingerprint calculated from a file's bytes. SHA-256 gives a 64-character hexadecimal value; the same file always gives the same hash, any change gives a different one, and the file cannot be rebuilt from it. That makes a hash ideal for proving a file is unchanged without revealing its content.

Example

The text hello has this SHA-256 hash:

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Change it to Hello and the hash is completely different. That sensitivity is what makes a hash work as proof.

Why hashes are used as proof

  • Integrity: a matching hash proves the file has not been altered.
  • Privacy: you can publish the hash without publishing the file.
  • Efficiency: a 64-character value represents a file of any size.

SecureAuthor records the SHA-256 hash of your file with a timestamp and anchors it on the blockchain. How it works →

Calculate a SHA-256 hash yourself

SystemCommand
Windowscertutil -hashfile "C:\path\file.png" SHA256
Windows PowerShellGet-FileHash "C:\path\file.png" -Algorithm SHA256
macOSshasum -a 256 /path/file.png
Linuxsha256sum /path/file.png

Compare the result with the SHA-256 line on your SecureAuthor certificate.

Things that change a hash (and surprise people)

  • Re-saving or exporting an image, even at the same quality.
  • Sending through WhatsApp, Telegram, Instagram or Facebook (they recompress).
  • Removing or editing metadata (EXIF, author fields).
  • Converting a document to another format, e.g. DOCX → PDF.

Keep the exact registered file.

Frequently asked questions

Can two files have the same SHA-256 hash?

In theory yes, in practice no: no SHA-256 collision has ever been found, and finding one is far beyond current computing power.

Does renaming a file change its hash?

No. The hash depends only on the content. The file name is not part of it.

Does saving a JPG again change the hash?

Usually yes. Re-saving, compressing, resizing or stripping metadata changes the bytes and therefore the hash, even if the picture looks identical.

Is a hash the same as encryption?

No. Encryption can be reversed with a key; a hash cannot be reversed at all.

Updated:

Protect your next file in seconds

Free proof of authorship: SHA-256 hash, UTC timestamp and a Polygon blockchain record. Your file is not stored.

Add to ChromeProtect a file