A hash function turns any digital item—a document, photo, message, video, or program—into a compact digital fingerprint. That fingerprint makes it possible to check whether the item has changed.
In one sentence
SHA-256 helps you confirm that two digital items are exactly the same—without comparing every byte by hand.
Think of a sealed package
When a parcel arrives, a tamper-evident seal helps you notice whether it was opened along the way. A hash plays a similar role for digital information. The sender calculates a fingerprint before sending the file. The receiver calculates it again after downloading it. If the fingerprints match, the file arrived unchanged.
The fingerprint is called a hash. The mathematical process that creates it is called a hash function.
What is SHA-256?
SHA-256 is a widely used cryptographic hash function. “SHA” means Secure Hash Algorithm, and “256” refers to its 256-bit output. We usually display that output as 64 letters and numbers.
A short message and a multi-gigabyte video both produce a fingerprint of the same length. The same input always produces the same hash. Change even one character or pixel, and the result changes dramatically.
Interactive SHA-256 lab
See a digital fingerprint change
01
Try it with text
Change one character and watch the entire fingerprint change.
02
Try it with a file
Select a document or image. The demo calculates its fingerprint inside your browser.
No file selected.
Private by design: the text and files you test here never leave your device.
Four properties that make hashes useful
Repeatable
The same input always creates the same fingerprint.
Change-sensitive
A tiny edit produces a very different fingerprint. This is called the avalanche effect.
One-way
The fingerprint does not contain a copy of a normal file that someone can simply reverse.
Collision-resistant
Finding two different inputs with the same SHA-256 hash is considered computationally infeasible.
Where you already encounter hashes
- Software downloads: publishers provide a checksum so you can confirm that an installer arrived unchanged.
- Cloud storage and backups: systems compare hashes to detect corruption and avoid storing duplicate files.
- Digital signatures: signatures commonly protect a hash of the document rather than processing the entire document directly.
- Version control: tools use hashes to identify exact versions of code and data.
- Verifiable proofs: a hash can represent private information in a public timestamp without publishing the original.
What a matching hash proves—and what it does not
A match can establish
The data is identical.
- The two items match byte for byte.
- The item has not changed since the trusted hash was calculated.
- Anyone can repeat the check independently.
A hash alone cannot establish
The content is true.
- Who created or owns the item.
- When the item existed, unless the hash was recorded by a trusted timestamp.
- Whether the content is accurate, safe, or legally valid.
From a hash to verifiable proof
A hash becomes more useful when it is connected to a reliable timestamp and, when needed, a verified identity. That creates a simple chain of evidence:
01
Hash
Create the private item’s digital fingerprint.
02
Stamp
Record the fingerprint with a tamper-evident timestamp.
03
Verify
Recalculate the hash later and confirm the exact match.
ProofStamp’s principle is straightforward: the original stays private; the proof becomes independently verifiable.
Frequently asked questions
Is a hash the same as encryption?
No. Encryption is designed to be reversed with a key. A cryptographic hash is designed as a one-way fingerprint.
Can somebody reconstruct my file from its SHA-256 hash?
Not for a normal, complex file. But a hash is not a safe way to hide a short or predictable secret: someone can hash likely guesses and compare the results.
Why not use MD5 or SHA-1?
They can still detect accidental copying errors, but they are no longer recommended when security or adversarial tampering matters. SHA-256 is a safer modern default.
Does hashing upload my file?
Hashing can happen entirely on your device. The interactive lab on this page does exactly that: your text and files never leave your browser.
Learn from the standard
For the formal specification and security properties, see NIST’s Secure Hash Standard, Hash Functions overview, and policy on SHA-2.

