Is SHA-256 Quantum Safe?
SHA-256 remains standardized and has no practical quantum break. Generic quantum query models reduce its preimage and collision margins, so suitability still depends on the construction and assurance profile.
Key Takeaway: SHA-256 is considered quantum safe. Approved for post-quantum use. No deprecation planned.
- Modality
- Hash Function
- Vulnerability
- Generic quantum preimage search has idealized query complexity on the order of 2^128; collision algorithms have different time-memory tradeoffs.
- NIST status
- Approved for post-quantum use. No deprecation planned.
- Replaced by
- No replacement needed — SHA-256 is quantum resistant
- Deprecation
- No deprecation planned.
Technical Analysis
SHA-256 IS quantum safe.
How SHA-256 Works
SHA-256 (Secure Hash Algorithm 256-bit) is a cryptographic hash function from the SHA-2 family, designed by the NSA and standardized by NIST in FIPS 180-4 (2001). Hash functions take an arbitrary-length input and produce a fixed-size output (256 bits for SHA-256) called a digest or hash. SHA-256 is deterministic (same input always produces same output), one-way (computationally infeasible to reverse), and collision-resistant (extremely difficult to find two inputs producing the same hash).
The algorithm processes input data in 512-bit blocks through 64 rounds of bitwise operations (rotations, shifts, XOR, AND, OR) and modular additions. It uses eight 32-bit working variables initialized with specific constants derived from the square roots of prime numbers. The final hash is the concatenation of these variables after processing all input blocks.
SHA-256 is critical infrastructure: Bitcoin and other proof-of-work blockchains use SHA-256 for mining and transaction IDs, TLS/SSL certificate chains use SHA-256 for certificate fingerprints and signature hashing (RSA-SHA256, ECDSA-SHA256), password storage systems use SHA-256 as input to key derivation functions (PBKDF2, scrypt, Argon2), and integrity verification for software downloads, git commits, and file systems rely on SHA-256 checksums.
Quantum Vulnerability Explained
Hash functions face two primary quantum threats: preimage attacks (finding an input that produces a given hash) and collision attacks (finding two inputs with the same hash). Grover's algorithm accelerates both attacks but does not break SHA-256.
For preimage resistance, the idealized query complexity falls from roughly 2256 classically to roughly 2128 with Grover search. Real cost depends on reversible hash circuits, error correction, parallelization, and verification; this page does not convert that model into a calendar forecast.
Generic quantum collision algorithms change the asymptotic query model relative to the classical birthday bound. Their concrete time, memory, circuit, and error-correction costs matter; the result is not evidence of a practical SHA-256 collision attack.
SHA-256 remains standardized, but suitability depends on the construction and assurance profile. Avoid attributing a single memory requirement to every quantum collision algorithm.
Migration Path
No migration is required for SHA-256 itself — it remains approved for post-quantum cryptographic use. However, organizations must be careful about how SHA-256 is used:
- Signature schemes: RSA-SHA256 and ECDSA-SHA256 remain quantum-vulnerable because of RSA or ECDSA. Migrate through an approved ML-DSA or SLH-DSA application profile; do not invent an algorithm name by appending a hash.
- Key derivation: Functions like PBKDF2-HMAC-SHA256 or HKDF-SHA256 remain secure for deriving encryption keys, but ensure the master key material is protected via quantum-safe key exchange (ML-KEM).
- Certificate fingerprints: X.509 certificates currently use SHA-256 fingerprints for integrity verification. The hash itself is quantum-safe, but the certificate signatures (RSA/ECDSA) must migrate to ML-DSA or SLH-DSA.
- Blockchain integrity: Bitcoin's use of SHA-256 for proof-of-work and transaction hashing is quantum-resistant. However, wallet signatures (ECDSA secp256k1) are Shor-vulnerable and require migration.
Organizations should audit cryptographic implementations to distinguish between SHA-256 usage (quantum-safe) and signature algorithm vulnerability (quantum-vulnerable).
Industries at Risk
While SHA-256 itself is quantum-safe, its association with vulnerable signature schemes creates indirect risk:
Cryptocurrency networks like Bitcoin use SHA-256 extensively for mining (proof-of-work), transaction IDs, and Merkle tree construction. These hash-based components are quantum-resistant. However, Bitcoin's ECDSA signatures are vulnerable, creating a common misconception that "Bitcoin isn't quantum-safe." The hash function is safe; the signature layer requires upgrading.
Software supply chains rely on SHA-256 for file integrity verification (checksums, hash trees) and git commit IDs. These hash uses are quantum-safe. However, code signing certificates (RSA-SHA256, ECDSA-SHA256) require PQC migration because the signature algorithm is vulnerable, not the hash.
Certificate ecosystems use SHA-256 in several distinct roles. Signature transition depends on the certificate profile, relying-party support, and applicable policy; NIST IR 8547's draft horizons are not a universal CA deadline.
Timeline
- 2025-2026: SHA-256 is quantum-safe and remains the standard hash for new systems. No migration needed.
- CNSA 2.0 scope: The December 2024 suite lists SHA-384 or SHA-512 for general-purpose hashing in NSS, with narrower uses for other hashes.
- Current status: No universal SHA-256 deprecation date is asserted; follow the applicable construction and policy profile.
- Future considerations: Track authoritative standards. CNSA 2.0 specifies SHA-384 or SHA-512 for general-purpose hashing within its NSS scope.
Organizations should maintain SHA-256 for hashing but immediately plan PQC migration for any signature algorithms (RSA-SHA256, ECDSA-SHA256) to ML-DSA or SLH-DSA.
At a glance
| Full Name | Secure Hash Algorithm 256-bit |
| Category | hash |
| Quantum Vulnerability | Generic quantum preimage search has idealized query complexity on the order of 2^128; collision algorithms have different time-memory tradeoffs. |
| NIST Status | Approved for post-quantum use. No deprecation planned. |
| Deprecation Timeline | No deprecation planned. |
| Replaced By | No replacement needed — SHA-256 is quantum resistant |
Evidence scope
Algorithm-level classification. Standards status and known cryptanalysis are separated from implementation, module-validation, protocol-composition, key-management, and policy evidence.
Evidence-scope review: 2026-07-10
- FIPS 180-4 (opens in new tab)Final Secure Hash Standard
- NIST finalized PQC standards (opens in new tab)Final standards · FIPS 203, 204, and 205
- NIST IR 8547 (opens in new tab)Initial public draft · proposed federal transition approach
- NSA CNSA 2.0 FAQ (opens in new tab)NSS scope · not a directive to entities outside NSS
- NIST SP 800-131A Rev. 2 (opens in new tab)Final guidance · transitioning cryptographic algorithms and key lengths
Deployment Guidance
No migration needed for SHA-256 when used as a hash function. Ensure it is not used as part of a vulnerable signature scheme (e.g., RSA-SHA256 — the RSA part is vulnerable).
How Qtonic Quantum Can Help
Verify Your Full Cryptographic Posture
SHA-256 is quantum safe, but your cryptographic posture is only as strong as its weakest link. QScout maps cryptographic inventory within approved scope under a governed engagement.