Security · Explainer

What Is SHA-256?

What is SHA-256 and why does every developer need to understand it?

SHORT ANSWER

SHA-256 is a one-way mathematical algorithm that takes any input (text, files, passwords) and produces a fixed 256-bit output, usually displayed as 64 hexadecimal characters. It is deterministic, irreversible, and highly collision-resistant.

The 64-character fingerprint

No matter if your input is a single word or a 10-gigabyte video file, SHA-256 will always output exactly 64 hexadecimal characters (like e3b0c44298fc1c14...). This makes it perfect for verifying that a file hasn't been tampered with during download.

Where you use it every day

You interact with SHA-256 constantly without knowing it. It secures the HTTPS connection to this website (TLS certificates), powers the proof-of-work mining in Bitcoin, tracks every commit in Git, and verifies the integrity of software updates you download.

  • Bitcoin: Used for mining and generating transaction IDs.
  • TLS/SSL: The standard signature algorithm for HTTPS certificates.
  • Git: Used to uniquely identify commits and detect tampering.
  • Software Downloads: Used for checksum verification.

SHA-256 vs MD5 and SHA-1

MD5 (128-bit) and SHA-1 (160-bit) are older, shorter hash functions that have been cryptographically broken. Attackers can easily create 'collisions' (two different files with the same hash). SHA-256's 256-bit output provides a massive security margin that remains unbroken today.

TRY IT LOCALLY

Try it in your browser with our SHA-256 Hash Generator. No upload, no server.

Open SHA-256 Hash Generator →

FAQ

Who invented SHA-256?

SHA-256 was designed by the United States National Security Agency (NSA) and published by NIST in 2001 as part of the SHA-2 family.

Is SHA-256 encryption?

No. Encryption is two-way (you can decrypt it with a key). SHA-256 is a one-way hash function. You cannot reverse it to get the original data back.

How do I pronounce SHA-256?

It is typically pronounced as 'shah two-fifty-six' or spelled out 'S-H-A two-five-six'.