EN

Is SHA-256 quantum safe?

SHA-256 secures Bitcoin's mining, block chain and addresses. A common fear is that quantum computers will break it. They won't, at least not in any way that matters. Here's why.

Updated 2 min read3 sources
Short answer

Yes. Quantum computers only speed up attacks on SHA-256 through Grover's algorithm, which cuts preimage resistance from 256 to about 128 bits, still out of reach. Collision attacks don't get a useful practical speedup either. For Bitcoin that means mining, block hashes and address hashes are safe; the quantum risk is to elliptic-curve signatures.

SHA-256 vs a quantum computer

PropertyClassicalQuantum (best known)Verdict
Preimage (find an input for a hash)2256~2128 with GroverSafe
Collision (find two inputs with the same hash)2128No practical speedupSafe
Mining (find a hash below a target)Brute forceQuadratic speedup, but quantum hardware is far slower and costlierNot a threat

What it means for Bitcoin

  • Mining: Grover's algorithm gives a quadratic speedup, but each quantum step is orders of magnitude slower than an ASIC hash. Quantum mining is not a credible threat.
  • Addresses: legacy addresses use HASH160 (SHA-256 then RIPEMD-160). Grover could in theory search 160-bit hashes in about 280 steps, but each step involves deriving a key pair, and the steps can't be parallelised efficiently. This is far harder than simply attacking an exposed public key.
  • Signatures: this is the weak point. Shor's algorithm (1994) breaks ECDSA and Schnorr outright. See can quantum computers break Bitcoin?

Frequently asked questions

Can a quantum computer reverse a Bitcoin address to get the public key?

Not in practice. That would be a hash preimage attack, which Grover's algorithm only speeds up quadratically. That's why never-spent addresses keep your public key safe.

Is SHA-3 more quantum resistant than SHA-256?

Both are considered quantum safe at the same output size. SHA-3 was chosen for design diversity, not because SHA-256 is weak.

Sources

  1. Grover (1996): A fast quantum mechanical algorithm for database search
  2. Shor (1994): Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer
  3. Google Research (Mar 2026): Safeguarding cryptocurrency by disclosing quantum vulnerabilities responsibly