Short Answer
SHA-256 turns any input into a fixed 64-character fingerprint. Comparing fingerprints tells you whether two pieces of data are identical. That is integrity. It is not secrecy, and it is not proof of who created the file: a hash only proves authenticity if you trust the source that published the expected value.
What a Hash Actually Is
SHA-256 is defined in NIST FIPS 180-4. It processes input through a fixed series of bit operations and outputs 256 bits, usually written as 64 hexadecimal characters. Three properties matter in practice:
- Deterministic: the same input always produces the same digest.
- Avalanche effect: changing one character produces a completely different digest.
- One-way: the digest cannot be turned back into the input.
You can see all three behaviours with the Hash Generator: hash a sentence, then hash it again with a single letter changed and compare the two outputs.
The Verification Workflow That Works
- Obtain the expected digest from a trustworthy source. For a software download, that means the vendor's official page served over HTTPS, ideally a signed release note, not a random forum post.
- Compute the digest locally. For text, paste it into the Hash Generator. For files, use a local tool such as
Get-FileHashin PowerShell orsha256sumon Linux. - Compare character by character. A single differing character means the data is different. There is no such thing as "close" when comparing hashes.
- Interpret the result correctly. A match means the file is exactly what the publisher hashed. A mismatch means the download was corrupted, altered, or the published digest refers to a different version.
What SHA-256 Does Not Prove
- Who made it. Anyone can publish a hash. A hash only attests to identity if the digest itself came from an authenticated source.
- That it is safe. Malware distributors publish accurate hashes of their malware. Integrity and safety are different questions.
- Secrecy. A hash does not hide the input; anyone with the file can compute the same digest.
- Legal validity. A checksum is not an electronic signature and carries no legal weight on its own.
Hash vs Encryption vs Signature
- Hash (SHA-256): one-way fingerprint used for integrity checks and identifiers.
- Symmetric encryption (AES): reversible with a shared key; provides confidentiality.
- Digital signature (RSA, ECDSA): combines a hash with a private key so recipients can verify origin and integrity using the public key. This is what proves authorship, not the hash alone.
- HMAC: a hash keyed with a shared secret, used to authenticate messages such as webhook payloads.
Where You Meet SHA-256 in Practice
TLS certificates use related hash constructions to protect connections. Git identifies commits and file contents by hash, which is why a changed history produces different commit IDs. Software projects publish SHA-256 sums for release archives. API providers sign webhook payloads with HMAC. Backup tools record digests to detect bit rot. In each case the hash answers one question: "is this data byte-for-byte what it should be?"
The Password-Storage Exception
Because SHA-256 is fast, it is the wrong tool for storing passwords. Attackers can try billions of candidates per second against a plain digest, and identical passwords produce identical hashes, enabling precomputed tables. Correct password storage uses a deliberately slow algorithm with a unique salt per user: Argon2id, bcrypt, or scrypt. If you are generating credentials rather than hashing them, use the Password Generator and read the password generator guide.
Checking Hashes With This Site
The Hash Generator computes SHA-1 and SHA-256 for text you paste, entirely in your browser, so the input never leaves your device. That is useful for comparing configuration snippets, verifying that two documents are identical, or recording a fingerprint of a contract clause. For files, compute the digest locally with your operating system's tool, since file selection never leaves your machine either way.
Related Tools and References
For token inspection see the JWT Decoder; for encoding rather than hashing see the Base64 Converter. Primary references: NIST FIPS 180-4 and the NIST hash functions project page.
Quick Answers
Can SHA-256 be reversed?
No. A hash is a one-way function. You can verify that a candidate input produces the same digest, but you cannot recover the input from the digest itself.
Is SHA-256 the same as encryption?
No. Encryption is reversible with a key. Hashing is not reversible at all, and it does not hide data in transit the way encryption does.
Does a matching SHA-256 hash prove a file is safe?
No. It proves the file matches that specific digest. If the file contained malware when the digest was published, the matching hash confirms the malware arrived intact.
Should I use SHA-256 to store passwords?
No. Plain SHA-256 is fast, which helps attackers brute-force it. Password storage needs a slow, salted algorithm such as Argon2id, bcrypt, or scrypt.