What the published guidance says about SHA-256 and quantum attack
If you are deciding whether SHA-256 can keep protecting data that must stay intact for years, the short answer from published guidance is that it can. The UK NCSC's Next steps in preparing for post-quantum cryptography page, dated 14 August 2024, states that "the security of hash functions such as SHA-256 is also not significantly affected" by quantum computers and that secure hash functions can continue to be used. NIST's post-quantum cryptography FAQ and the French ANSSI views document on the post-quantum transition, dated 4 January 2022, reach the same general position, but both add a caution about collision attacks, which is the part of the guidance you should carry into your own planning.
The readers who need this answer are engineers, security leads and auditors responsible for data with a confidentiality or integrity requirement measured in years, such as archived records, signed documents, software update artifacts and audit logs. Their question is narrower than whether SHA-256 is broken: it is whether a future quantum computer changes the risk to a hash used for integrity, signatures or proofs. The guidance treats Grover's algorithm as the relevant quantum attack on hashes, and it says the practical speedup is smaller than the theoretical one because quantum hardware is costly and massively parallel attacks reduce its benefit.
The guidance also marks where the caution applies. The ANSSI document says Grover's algorithm can speed up collision finding attacks on hash functions and suggests using 384-bit hash outputs for SHA-2 and SHA-3 where that risk matters. Confirm with your own risk owner whether any of your data falls into that category, and check the current text of the NIST and NCSC pages before citing them, since both are updated over time.
What each body has published about SHA-256 against quantum attack
This table lists each document the sources cover, the date it gives, and what it says about SHA-256 or hash functions in a quantum context. Read each row on its own terms, since some documents address SHA-256 directly and others only address public-key algorithms or do not mention hashes. The main takeaway is that the sources reviewed do not name SHA-256 for retirement, and the UK NCSC and ANSSI pages say its security is not significantly affected by quantum computers.
| Document | Date given | What it says about SHA-256 or hash functions |
|---|---|---|
| NIST FIPS 180-4 (Secure Hash Standard) | Published August 2015; planning note dated 3 July 2023 | Specifies SHA-224, SHA-256, SHA-384 and SHA-512 for message digests. The planning note says NIST has decided to revise it, with no timeline given on the page. |
| NIST SP 800-131A Rev. 3 (initial public draft) | 21 October 2024 | Names SHA-1 and the 224-bit hash functions for a retirement timeline. Does not name SHA-256 for retirement. |
| NIST post-quantum cryptography FAQ | Entry added 18 November 2018; page last updated 4 December 2026 | Notes that Grover's algorithm offers a smaller practical advantage than its theoretical speedup, and that NIST will issue transition guidance when needed. |
| UK NCSC, Next steps in preparing for post-quantum cryptography | 14 August 2024 (first published November 2023) | States that the security of hash functions such as SHA-256 is not significantly affected, and that secure hash functions can continue to be used. |
| ANSSI, views on the post-quantum cryptography transition | 4 January 2022 | Says Grover's algorithm can speed up collision finding attacks on hash functions and suggests 384-bit hash outputs for SHA-2 and SHA-3, for instance. |
| NIST IR 8547 (final) | 27 October 2026 | Addresses the move to post-quantum signatures and key establishment. Its abstract and keywords do not mention hash functions or symmetric algorithms. |
Why the guidance treats SHA-256 differently from public-key algorithms
The transition guidance is built around public-key algorithms, meaning the signature and key-establishment schemes that protect certificates, key exchange and signed artifacts. NIST's IR 8547 describes the move from quantum-vulnerable algorithms to post-quantum digital signature and key-establishment schemes, and its abstract does not mention hash functions or symmetric algorithms. The NCSC states it directly: "In contrast with PKC, the security of symmetric cryptography is not significantly impacted by quantum computers," and "the security of hash functions such as SHA-256 is also not significantly affected." For a team with SHA-256 in an integrity check, a document signature or a proof, the distinction matters: the public-key component that signs or authenticates that hash is the item on the migration list, not the hash itself.
The main quantum threat to a hash is Grover's algorithm, which ANSSI describes as a generic quantum algorithm that quadratically speeds up exhaustive search. NIST's FAQ notes that this theoretical speedup overstates the practical advantage, because quantum hardware is costly and massively parallel attacks reduce its benefit. The same FAQ observes that most quantum attacks on proposed post-quantum cryptosystems have involved some variant of Grover's algorithm. ANSSI adds that Grover's algorithm can speed up collision finding attacks on hash functions, and suggests using 384-bit hash outputs for SHA-2 and SHA-3 for instance. The sources listed on this page do not give a quantified collision-finding speedup for SHA-256, so confirm the figures in the ANSSI document and the NIST FAQ before relying on any specific margin.
Practically, the guidance treats SHA-256 as a hash to keep under review rather than one to replace on a quantum timeline. Check where SHA-256 is used for long-lived integrity, and whether a longer-output variant such as SHA-384 is required by your own policy or a federal profile. Record that the public-key layer above the hash, such as the signature on a long-lived archive, is the part the transition guidance schedules for replacement.
Where SHA-256 is relied on, and what the sources say about each
SHA-256 appears in several distinct roles, from checking that a file is intact to anchoring proofs and commitments. The sources treat these roles together when discussing quantum effects, so each card below separates one use and says what the published guidance covers for it.
Integrity checks and digests
FIPS 180-4 specifies SHA-256 to generate a message digest that shows whether a message has changed since the digest was created. This is the most direct use of the hash, and it is the role the NIST standard was written for. For long-lived data, the question is whether a stored digest can still be trusted to detect tampering over the retention period. Check which digest length your archive and verification tools use, and whether they store the algorithm name alongside each digest so that a later migration is possible.
FIPS 180-4 textHMAC and HKDF
RFC 6234 covers SHA-224, SHA-256, SHA-384 and SHA-512 and includes sample code for SHA-based HMAC and HKDF. These constructions use the hash as a building block for message authentication and key derivation, so the relevant question is how the key and the hash output interact rather than the hash alone. The NCSC states that the security of hash functions such as SHA-256 is not significantly affected by quantum computers. Confirm which HMAC and HKDF implementations your systems call and which hash function each one is configured to use.
RFC 6234Certificate and signature hashing
Certificates and signed documents often hash their contents with SHA-256 before applying a signature. NIST IR 8547 moves digital signature algorithms and key-establishment schemes toward post-quantum replacements, but its abstract and keywords do not mention hash functions. The hash inside a signature and the signature algorithm are separate components. Check each signature chain for the hash algorithm and the signature algorithm separately, since the sources treat them as distinct items.
NIST IR 8547Proofs and commitments
Proofs and commitments use a hash to bind a value without revealing it, or to show that a value was fixed at a given time. The sources discuss collision finding for hash functions in general, and ANSSI notes that Grover's algorithm can speed up such attacks and suggests 384-bit hash outputs for SHA-2 and SHA-3. The sources do not say how this applies to a specific proof system. Confirm with the protocol designer which property the commitment relies on, whether collision resistance or preimage resistance, and whether the output length meets the guidance you follow.
ANSSI views on PQCStored data hashes
Many systems store hashes of data in databases, backup catalogs and audit logs to detect later changes. These stored digests may need to remain valid for years, so their algorithm choice and retention period are linked. NIST's SP 800-131A Revision 3 draft names SHA-1 and the 224-bit hash functions for a retirement timeline and does not name SHA-256 for retirement. Check your retention policy against the current NIST guidance, and record which algorithm produced each stored hash so the data can be re-hashed if guidance changes.
SP 800-131A Rev. 3What the sources say about data that must stay protected for years
For data that must stay confidential or intact for years, the sources separate two questions that are easy to blur together. The first is whether SHA-256 itself holds up. The second is whether the public-key algorithms that protect the keys, certificates or signatures around that data hold up. The UK NCSC's Next steps in preparing for post-quantum cryptography makes the distinction directly: in contrast with public-key cryptography, "the security of symmetric cryptography is not significantly impacted by quantum computers," and "the security of hash functions such as SHA-256 is also not significantly affected," so secure hash functions can continue to be used. NIST's post-quantum FAQ reaches a similar position for symmetric ciphers, saying that current applications "can continue to use AES with key sizes 128, 192, or 256 bits."
The sources do not treat the hash as a risk that needs replacing on a schedule. NIST's draft revision of SP 800-131A names SHA-1 and the 224-bit hash functions for a retirement timeline and does not name SHA-256 for retirement. The ANSSI guidance goes further in a precautionary direction: it notes that Grover's algorithm can speed up collision finding on hash functions and suggests "using 384 bits hash outputs for SHA-2 and SHA-3" as a precaution. That is a recommendation about output length, not a finding that SHA-256 is broken, and the ANSSI text does not say when it would become necessary.
The second question is where long-lived data most often depends on public-key algorithms. Confidentiality of a stored archive frequently rests on keys that were wrapped under RSA or elliptic-curve key exchange, and integrity or authenticity may rest on signatures over the hash. Those public-key components are the ones NIST IR 8547 addresses when it describes moving from quantum-vulnerable algorithms to post-quantum digital signature and key-establishment schemes. Engineers should inventory which keys and signatures protect each long-lived dataset and confirm those with their vendors and standards documents, since the sources do not give a date by which that migration must finish.
What the guidance says to use instead or alongside SHA-256
The UK NCSC states that the security of hash functions such as SHA-256 is not significantly affected by quantum computers and that secure hash functions can continue to be used. NIST's post-quantum FAQ makes a parallel point about symmetric primitives, and its transition work so far has focused on public-key signatures and key establishment rather than on hash functions. The NIST IR 8547 abstract does not mention hash functions or symmetric algorithms, so no retirement date for SHA-256 appears in the sources.
- NCSC position: SHA-256 is described as a hash that can continue in use, with no replacement date given in the NCSC page.
- NIST Grover note: the NIST FAQ says Grover's algorithm offers a smaller practical advantage than its theoretical speedup, and that transition guidance will be issued when needed.
- FIPS 180-4 status: the standard was published in August 2015, and a planning note dated 03/07/2023 says NIST has decided to revise it, with no timeline on that page.
- SP 800-131A draft: the Revision 3 initial public draft (October 21, 2024) names SHA-1 and the 224-bit functions for retirement, and does not name SHA-256.
- Check before you rely on it: confirm the current revision of FIPS 180-4 and SP 800-131A with NIST, since both are still moving.
ANSSI's views on the post-quantum transition take a more cautious line. Its document describes Grover's algorithm, dated 1998, as able to speed up collision finding attacks on hash functions, and suggests using 384-bit hash outputs for SHA-2 and SHA-3. The same document gives the parallel advice of doubling AES keys to 256 bits, so the 384-bit suggestion reflects a conservative reading of the same attack class rather than a finding that SHA-256 has failed.
- ANSSI suggestion: the document recommends 384-bit hash outputs for SHA-2 and SHA-3, a choice that moves the output length rather than the algorithm family.
- SHA-384 and SHA-512: NIST's Hash Functions page lists both in the SHA-2 family in FIPS 180-4, alongside SHA-224, SHA-256, SHA-512/224 and SHA-512/256.
- ANSSI page date: the ANSSI views page is dated January 4, 2022, so the reader should check whether a later revision exists.
- Scope of the advice: the ANSSI text is framed around collision attacks, so it bears most on applications where a collision would matter, such as signatures over hashes.
- What to confirm: check with your own risk owner and the relevant national agency whether the 384-bit suggestion applies to your use, since the sources do not set a deadline for it.
SHA-3 is specified in FIPS 202 and is based on the KECCAK design, which is a different construction from the SHA-2 family. The NIST Hash Functions page lists SHA3-224, SHA3-256, SHA3-384 and SHA3-512, along with the extendable-output functions SHAKE128 and SHAKE256. The page states that only the fixed-length functions are currently approved as hash algorithms, so the SHAKE functions should not be used where a fixed-length hash is required.
- Approved fixed-length functions: SHA3-224, SHA3-256, SHA3-384 and SHA3-512 are the approved hash algorithms under FIPS 202.
- Not approved as hashes: SHAKE128 and SHAKE256 are extendable-output functions and are not currently approved as hash algorithms.
- Output length choice: SHA3-384 provides the 384-bit output that ANSSI suggests, so an organization can meet that suggestion while using the SHA-3 construction.
- Interoperability: SHA-3 is not a drop-in replacement for SHA-2, so every system that consumes the digest must support the new function.
- What to confirm: check your libraries and protocols for FIPS 202 support and for the exact function names they accept.
What to do about SHA-256 in your systems, in order
This sequence turns the published position on SHA-256 into an inventory, a set of dated references, vendor answers and a recorded decision that can be reviewed later. It keeps hash function decisions tied to the public-key migration, so that each system's position is documented before anyone changes it.
Find every place SHA-256 is used
Engineers and platform owners search code, configuration and vendor documentation for SHA-256 and for the constructions built on it, including HMAC-SHA256 and HKDF. Include certificate signing, file and backup integrity checks, digital signature schemes that use a SHA-256 digest, and proofs or commitments in application logic. Each finding should be recorded with the system name, the data it protects, how long that data must stay protected, and the owner. The step is done when every use has an owner and a row in the inventory. Note that RFC 6234 describes SHA-based HMAC and HKDF, so those constructions should be listed explicitly.
Read the dates and positions for your data
Security leads read the published positions for the data in each inventory row, starting with the NCSC and ANSSI documents and the NIST post-quantum FAQ. The NCSC states that secure hash functions such as SHA-256 can continue to be used, and ANSSI suggests 384-bit hash outputs for SHA-2 and SHA-3 in its discussion of collision finding. Record which position applies to each row, and the document, version and date it comes from. NIST has decided to revise FIPS 180-4 but its planning note gives no timeline, so the reader should confirm any current status directly on the NIST pages before relying on it. The step is done when each row cites a dated source.
Ask each vendor in writing
Procurement and vendor-risk teams send each vendor that handles SHA-256 in a product they run a written request asking what the vendor has published on hash functions, which algorithms and output sizes the product uses, and whether it can use SHA-384 or SHA-3 where a planner requires it. Ask for the version and edition each answer applies to, and ask for the date of the vendor's position. Do not accept a verbal answer. The step is done when each vendor has replied in writing, or the lack of a published position is recorded as the answer. Vendor answers should be compared against the position recorded in the previous step.
Plan hash changes with the public-key migration
Architects group the hash changes with the public-key work in one plan, because certificates, signatures and key establishment are where NIST IR 8547 focuses its migration guidance. For each row that the position in step two marks for a longer output, list the dependencies: the protocols, libraries and stored artifacts that would have to change together. Test compatibility on the versions you run, since the sources do not establish that two algorithms or versions are interchangeable. The step is done when the plan names the owner, the dependencies and a test environment for each change.
Record the decision for auditors and reviewers
Compliance leads write one record per inventory row that states the system, the algorithm in use, the dated source relied on, the vendor's written answer, the planned change and its owner. Store the record with the inventory so that auditors and customer security reviewers can trace each decision to its evidence. Review the record when the NIST FIPS 180-4 revision or a new SP 800-131A version is published, and when a vendor's answer changes. The step is done when every row has a record that a reviewer can follow back to its source.
Claims readers meet about SHA-256 and what the sources actually say
Engineers and security leads often hear strong statements about SHA-256 and quantum computers, from broken to obsolete. This section sets each common claim against what NIST, the UK NCSC and ANSSI have published, so you can check the claim before acting on it.
SHA-256 is broken by quantum computers
The NCSC page states that the security of hash functions such as SHA-256 is also not significantly affected by quantum computers, and that secure hash functions can continue to be used. The concern in this claim usually comes from Grover's algorithm, which the NIST FAQ says offers a smaller practical advantage than its theoretical speedup, because quantum hardware is costly and massively parallel attacks reduce its benefit. Before accepting or repeating the claim, check which attack it refers to and whether the source names SHA-256 as affected.
NCSC next stepsA larger output always fixes everything
The ANSSI document says Grover's algorithm can speed up collision finding attacks on hash functions and suggests using 384 bits hash outputs for SHA-2 and SHA-3 for instance. That is guidance for one attack class in one set of sources, not a general rule that a larger output solves every quantum concern. Check whether your use depends on collision resistance, and confirm the output length against the profile your own assessor or customer requires.
ANSSI views on PQCQuantum computers make hashes obsolete
The sources do not say this. NIST IR 8547 moves from quantum-vulnerable algorithms to post-quantum digital signature and key-establishment schemes, and its abstract does not mention hash functions or symmetric algorithms. The NCSC contrasts public-key cryptography, which quantum computers significantly impact, with symmetric cryptography, which they do not. Check the scope of any transition document before treating a hash as part of it.
NIST IR 8547SHA-256 must be replaced now
The NIST SP 800-131A Revision 3 draft names SHA-1 and the 224-bit hash functions for a retirement timeline and does not name SHA-256 for retirement. NIST's own Hash Functions page still lists SHA-256 in the SHA-2 family of FIPS 180-4. Replacement is not supported by these sources, so do not plan a migration on this claim alone. Confirm the status of your SHA-256 use against the current final version of SP 800-131A when it is published.
SP 800-131A Rev. 3Grover's algorithm breaks every symmetric key
The NIST FAQ says current applications can continue to use AES with key sizes 128, 192, or 256 bits, and the ANSSI document describes Grover's algorithm as a quadratic speedup for exhaustive key search. Those sources do not support the claim that Grover's algorithm breaks symmetric keys outright. The practical question is key length and attack cost, which the sources frame in terms of parallelism and hardware cost. Check your key sizes against the NIST FAQ and the ANSSI guidance rather than a general statement.
NIST PQC FAQQuestions people ask about SHA-256 and quantum attack
Is SHA-256 quantum safe as the NCSC uses the term?
The UK NCSC says the security of hash functions such as SHA-256 is not significantly affected by quantum computers, so secure hash functions can continue to be used. Its guidance on the page dated 14 August 2024 applies this to symmetric cryptography and hashes, not to public-key algorithms, which it says need replacing. The NCSC does not describe SHA-256 as quantum safe in a certified sense, and the NCSC page does not give a date by which SHA-256 must change. Check the wording of the NCSC page itself before quoting it in an audit or vendor response.
Must we replace SHA-256 now for quantum attack reasons?
The published guidance does not ask you to replace SHA-256 for quantum reasons. The NCSC says secure hash functions can continue to be used, and NIST's post-quantum FAQ addresses AES and symmetric algorithms in the same way. Work that the guidance does call for is replacing public-key algorithms such as RSA and elliptic-curve schemes, which is covered by NIST IR 8547. Your cost is therefore mainly the review of where hashes are used, not a forced swap. Ask your vendor which hash functions they use and whether any use depends on the hash being collision resistant.
Does the guidance suggest 384-bit hash outputs instead of SHA-256?
The French agency ANSSI suggests using 384-bit hash outputs for SHA-2 and SHA-3, for example, because Grover's algorithm can speed up collision finding attacks on hash functions. This is ANSSI's view on the post-quantum transition, and the page is dated January 4, 2022. The NCSC and NIST pages listed here do not make the same recommendation for SHA-256. If your data must stay confidential or its integrity must hold for many years, ask your security team whether SHA-384 fits your design, and confirm the choice against the ANSSI document and your own threat model.
Is our long-lived data at risk from quantum attack on SHA-256 today?
The published sources do not say that data hashed with SHA-256 is at risk today. NIST's post-quantum FAQ notes that Grover's algorithm offers a smaller practical advantage than its theoretical speedup, because quantum hardware is costly and massively parallel attacks reduce its benefit. NIST says it will issue transition guidance when needed. The main exposure for long-lived data is usually the public-key layer that protects keys and signatures, which the NCSC and NIST IR 8547 address directly. Assess your data by asking which algorithms protect confidentiality and authenticity over its lifetime, rather than assuming the hash is the weak point.
Does HMAC-SHA256 differ from plain SHA-256 for quantum attack?
HMAC-SHA256 builds on SHA-256 and uses a shared secret key, so its security depends on the hash and on the key. The sources listed here discuss SHA-based HMAC in RFC 6234 but do not give a separate quantum position for HMAC-SHA256. The NCSC's statement about hash functions is the closest published position, and the NIST FAQ's note on Grover's algorithm applies to key search in symmetric designs. Treat HMAC-SHA256 as a separate question with its own check, and confirm the position for your protocol with the owner of the design before relying on it.
What should we ask a vendor about SHA-256 and quantum attack?
Ask which hash functions and output lengths the product uses, and where each is used for integrity, signatures, proofs or key derivation. Ask whether any SHA-256 use depends on collision resistance, and whether the vendor has adopted the ANSSI suggestion of 384-bit outputs. Ask how the vendor will handle a change to the hash if NIST or your regulator revises guidance, and whether that change is a configuration update or a re-issue of stored data. Request written answers with the version and date of each component, since the vendor's documentation is the source that matters for your product.
Which dates the guidance sets for SHA-256 and related hash standards
The diagram starts with two older documents, RFC 6234 (May 2011) and FIPS 180-4 (August 2015), which define the SHA-2 family that includes SHA-256. The ANSSI views (January 2022) and the NCSC Next steps page (August 2024) then address how quantum attacks bear on hash functions, with NCSC stating that the security of SHA-256 is not significantly affected. The SP 800-131A Rev. 3 draft (October 2024) and NIST's FIPS 180-4 revision planning note (July 2023) are the NIST items to track, and NIST IR 8547 (October 2026) covers signatures and key establishment rather than hashes. Check each date against its source before relying on it.
Dated guidance sources that bear on SHA-256, grouped by the issuing agency or document.
How DeployOpen helps teams plan changes to hash functions in their systems
DeployOpen helps teams find where SHA-256 is used in their self-hosted platforms and decide whether any of those uses need a change. We work inside the client's own infrastructure and produce a written, reviewable plan. The sources in this topic say SHA-256 is not significantly affected by quantum computers, so most of the work is inventory, confirmation and documentation rather than replacement.
How we scope
- We list every system where SHA-256 appears, including integrity checks, signatures, proofs and key derivation.
- We separate uses that need only a collision-resistant hash from uses that depend on a longer output or a specific standard profile.
- We agree the scope in writing before work starts, and engagements are fixed-scope with clear deliverables.
How we build
- We check each SHA-256 use against NIST FIPS 180-4, NIST SP 800-131A Revision 3 and the sources listed on this page.
- We test where a hash output length or a collision-finding attack is relevant, using the guidance the sources give for SHA-2 and SHA-3 outputs.
- We record the configuration, library versions and parameter choices so the evidence can be reviewed later.
How we hand over
- You receive a written findings report that lists each SHA-256 use, its status and the source that supports the conclusion.
- Where a change is needed, we document the steps, the affected components and the versions to confirm before any upgrade.
- The handover includes items to confirm with vendors and with your own environment, since the sources do not cover every product.
How we support
- Ongoing support and periodic reviews are available as a retainer, which helps when NIST publishes revised guidance.
- We can retest affected systems after upgrades and update the findings report to match the current configuration.
- We can help your compliance and security teams prepare the evidence they need for internal and external reviews.

