Is PBKDF2 quantum safe for long-lived data?

The published guidance treats PBKDF2 as a symmetric construction, so quantum search attacks reduce its margin rather than breaking it. Teams protecting long-lived stored keys should check iteration counts, salts and the newer memory-hard options NIST has said it plans to approve.

On this page

What the published guidance says about PBKDF2 and quantum attacks

If you store passwords or derive keys from passphrases with PBKDF2, the question is whether those hashes must be replaced for long-lived data. NIST SP 800-132 and RFC 8018 define PBKDF2, and the sources on this page treat it as a symmetric-based construction whose main quantum concern is Grover-style search, not the public-key attacks that drive most post-quantum migration. NIST has revised SP 800-132 as of May 2023 and has said the revision will add a memory-hard function and further guidance on PBKDF2. Password store owners, teams that wrap data-protection keys with derived keys, and auditors reviewing either should read the answer from that angle.

The guidance is consistent on the core point. The NCSC states that the security of symmetric cryptography is not significantly impacted by quantum computers, and that the security of hash functions such as SHA-256 is also not significantly affected. ANSSI describes Grover's algorithm as a quadratic speedup for exhaustive key search and suggests doubling key lengths, for example using 256-bit keys instead of 128-bit keys for AES. NIST's FAQ notes that the practical advantage of Grover's algorithm is smaller than the theoretical speedup, because quantum hardware is costly and massively parallel attacks reduce its benefit. NIST IR 8547, which covers the transition, focuses on signatures and key establishment and does not mention hash functions or symmetric algorithms.

For PBKDF2 in practice, the actions are in the parameters rather than the algorithm. Confirm the PRF in use (RFC 8018 lists HMAC-SHA-256 and longer variants as options beyond the HMAC-SHA-1 default), confirm the iteration count meets NIST SP 800-132's guidance of as large as possible while acceptable and at least 1,000, and confirm salts carry enough randomness. Also check that your settings track the revision NIST has announced, since SP 800-63B-4 points verifiers to the latest SP 800-132 or updated NIST guidance. Confirm the current figures with the sources linked here and with your own performance testing, and record the review date for your auditors.

Which documents address PBKDF2 and what each says

This table lists each source that addresses PBKDF2 or its underlying hash and symmetric primitives, with its date and what it says. Read it to see which documents speak to password-based key derivation directly and which address only the hash or symmetric building blocks it relies on. The main takeaway is that no source in this set states that PBKDF2 is quantum safe or unsafe, so the answer depends on the underlying primitives and the iteration and salt parameters you use.

SourceWhat it says about PBKDF2 or its primitivesDates it sets
RFC 8018, PKCS #5 v2.1 (IETF, Informational)Defines PBKDF2 and recommends it for new applications. Lists HMAC-SHA-1 as the default PRF and several HMAC-SHA-2 options. Warns that password-based cryptography is limited because offline guessing is possible.January 2017
NIST SP 800-132, Part 1: Storage ApplicationsDescribes deriving master keys from passwords to protect stored data. Covers PBKDF2 parameters such as salt and iteration count. Does not address quantum attacks in the text supplied.Published December 2010 (final 12/22/10)
NIST SP 800-132 revision noticeStates NIST plans to revise SP 800-132 to approve an additional memory-hard password-based key derivation function and give further guidance on using PBKDF2. Draft preparation had not started.Notice dated May 11, 2023
NIST SP 800-63B-4 (Authenticators)Requires verifiers to store passwords salted and hashed with a suitable scheme and points to SP 800-132 or updated guidance. Does not name PBKDF2. Asks for a cost factor raised over time and a salt of at least 32 bits.Current revision (4)
NIST post-quantum cryptography FAQSays current applications can continue to use AES with 128, 192 or 256-bit keys. Notes Grover's algorithm offers a smaller practical advantage than its theoretical speedup. Says NIST will issue transition guidance when needed.Page last updated December 4, 2026
NCSC, Next steps in preparing for post-quantum cryptography (UK)States symmetric cryptography and secure hash functions such as SHA-256 are not significantly affected by quantum computers. Says existing symmetric algorithms with at least 128-bit keys can continue to be used.Dated 14 August 2024 (first published November 2023)
ANSSI views on the post-quantum cryptography transition (France)Describes Grover's algorithm as a quadratic speedup for exhaustive key search. Suggests 256-bit keys for AES and 384-bit hash outputs for SHA-2 and SHA-3 as a precaution against collision finding attacks.Page dated January 4, 2022

Why the guidance treats PBKDF2 as a symmetric-based construction

PBKDF2 is not a public-key algorithm. As RFC 8018 describes it, it applies a pseudorandom function repeatedly to turn a password into a derived key, and the default pseudorandom function is HMAC-SHA-1, with HMAC-SHA-256 and the longer HMAC variants offered as alternatives. Because the construction rests on a keyed hash rather than on the public-key problems that quantum algorithms are known to threaten, the statements in the NCSC and NIST guidance apply in principle. The NCSC states that "the security of symmetric cryptography is not significantly impacted by quantum computers," and says the same of hash functions such as SHA-256. The NIST FAQ makes a parallel point about symmetric keys. Engineers should read this as a statement about the primitive underneath PBKDF2, not as a certification of any PBKDF2 implementation or deployment.

The quantum concern that does apply is Grover's algorithm, which the ANSSI document describes as quadratically speeding up exhaustive search of secret keys. The NIST FAQ adds that its practical advantage is smaller than the theoretical speedup, because quantum hardware is costly and massively parallel attacks reduce its benefit. ANSSI's suggested response for hash-based constructions is to use 384-bit hash outputs for SHA-2 and SHA-3, a choice that is relevant when the underlying hash is chosen for a long-lived PBKDF2 deployment. Teams should confirm which PRF their software actually uses, since the default in RFC 8018 is HMAC-SHA-1 and the choice changes the reasoning.

For most of the protection in practice, RFC 8018 Section 8 points to the iteration count and the password itself. It notes that password-based cryptography is generally limited in the security it can provide because offline guessing is possible, and that passwords must be selected well. RFC 8018 Section 4.2 quotes NIST SP 800-132 advising an iteration count as large as possible while key generation time remains acceptable, with a minimum of 1,000 iterations, and notes that each doubling adds roughly one bit of strength against trial-based attacks. Teams should record their iteration counts and review them periodically, since NIST has announced a planned revision of SP 800-132 that will give further guidance on PBKDF2.

Where PBKDF2 is relied on and what the sources say about each

PBKDF2 appears in four places that matter for long-lived data: password verifiers, master-key derivation, PKCS #5 containers and the PRF choice inside them. The sources treat each use differently, so the right question depends on where the derived key or hash is stored. The sources listed on this page do not give a product-specific position.

Password verifier storage

NIST SP 800-63B-4 requires verifiers to store passwords in a form resistant to offline attacks, salted and hashed with a suitable scheme. It names an approved scheme from SP 800-132 or updated NIST guidance and does not name PBKDF2 directly. It also says the cost factor should be as high as practical and raised over time, and that the salt must be at least 32 bits. Check whether your verifier's iteration count is set to a value you can raise later.

SP 800-63B-4 text

Master-key derivation from passphrases

NIST SP 800-132 Part 1, published in December 2010, describes deriving master keys from passwords or passphrases to protect stored data or data-protection keys. This is the use where the derived key itself protects long-lived ciphertext, so the security of the passphrase and the derivation parameters matters for as long as the data is kept. NIST has announced a revision to SP 800-132 that will add a memory-hard function and more PBKDF2 guidance, but the sources say drafting had not started as of the notice.

SP 800-132 text

PKCS #5 containers and encrypted key files

RFC 8018 (PKCS #5 version 2.1) defines PBKDF2 as the key derivation step used in password-based encrypted containers and key files. The container format fixes how the salt, iteration count and PRF are recorded, so these values are visible in the file header. Confirm the PRF and iteration count recorded in each file you need to keep, because older files may use settings that differ from current defaults.

RFC 8018 text

PRF choice: HMAC-SHA-1 default versus SHA-2

RFC 8018 lists HMAC-SHA-1 as the ASN.1 default PRF, while HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, HMAC-SHA-512 and the two truncated SHA-512 variants are listed as options. If your system falls back to the default, the PRF is HMAC-SHA-1 unless the file or configuration says otherwise. Check which PRF is actually written into each container, since the default and the parameters you set are not always the same.

RFC 8018 PRF list

Products that depend on PBKDF2

The sources listed on this page do not give a product-specific position on PBKDF2 for any vendor. Whether a product uses PBKDF2, which PRF it selects, and what iteration count it sets are questions for the vendor's documentation. Ask for these three values in writing, along with whether they can be raised on existing data. For long-lived stored data, also ask how existing records are re-derived after a change.

Minimum iterations
1,000

What the sources say about PBKDF2 for data that must stay confidential for years

For data that must stay confidential for years, the first question is whether the protection depends on public-key cryptography, which the guidance schedules for replacement, or on symmetric and hash-based primitives, which it treats very differently. PBKDF2 is a password-based key derivation function that applies a pseudorandom function (typically HMAC with a SHA-2 hash) many times to turn a password into a key. Its security rests on the hash and MAC underneath it and on the iteration count, not on a public-key algorithm. The NCSC states that the security of symmetric cryptography is not significantly impacted by quantum computers, and that symmetric algorithms with at least 128-bit keys, such as AES, can continue to be used. It also states that the security of hash functions such as SHA-256 is not significantly affected. The NIST FAQ says current applications can continue to use AES with 128, 192 or 256-bit keys, and that NIST will issue transition guidance when needed. Taken together, these sources give no basis for moving PBKDF2 deployments onto a replacement algorithm on quantum grounds alone.

The sources do not, however, give PBKDF2 a clean bill of health for long-lived data. ANSSI notes that Grover's algorithm can speed up collision-finding attacks on hash functions and suggests 384-bit outputs for SHA-2 and SHA-3, so teams protecting material for decades should weigh that guidance when choosing the underlying PRF. The sources also do not publish a required iteration count or a deadline for PBKDF2 specifically. NIST SP 800-132 describes PBKDF2 and recommends a minimum of 1,000 iterations, with the count as large as possible while key generation time remains acceptable. NIST SP 800-63B-4 says the cost factor should be as high as practical without hurting verifier performance and raised over time, and that the salt should be at least 32 bits. NIST has also said it plans to revise SP 800-132 and add a memory-hard function.

In practice, confirm which PRF and hash your PBKDF2 deployments use, and check whether any stored derived keys protect data that must stay confidential for longer than the planning horizon. Raise the iteration count as SP 800-63B-4 advises, testing the time cost on your own hardware so verifier performance stays acceptable. Track NIST's revision of SP 800-132 and any transition guidance the NIST FAQ promises, since neither sets a PBKDF2-specific deadline today. Passwords remain the weak point: RFC 8018 notes that password-based cryptography is generally limited in the security it can provide because offline guessing is possible, so strong password selection matters as much as any parameter.

What the guidance says to use instead or alongside PBKDF2

NIST's notice dated May 11, 2023 says the next revision of SP 800-132 would approve an additional memory-hard password-based key derivation function and password hashing scheme, and would give further guidance and clarifications on using PBKDF2. The same notice says draft preparation had not started at that date. The sources listed here do not say what the new scheme is called, when it will be approved, or whether it will replace PBKDF2 for any particular use, so the reader should not treat it as a settled replacement.

  • Source date: The notice is dated May 11, 2023, and reports that draft preparation had not started.
  • Scope of the change: The revision is described as adding a memory-hard scheme and clarifying PBKDF2, not as withdrawing it.
  • Name and timing: No scheme name or approval date appears in the listed sources.
  • Current SP 800-132 text: The published SP 800-132 describes PBKDF2-based methods for protecting stored data, and that text is what applies until a revision is published.

Check the NIST project page for SP 800-132 for any newer draft or final revision before you rely on this planning note in a design or audit file.

What to do with PBKDF2 in your systems, in order

This sequence turns a general statement about PBKDF2 into a recorded, checkable position for each system that uses it. It shows where PBKDF2 sits in your estate, what parameters each use relies on, which vendors have committed to a path, how stored hashes get stronger over time, and what evidence you keep for auditors and customers.

  1. Find every place PBKDF2 is used

    Search application code, libraries, configuration, databases and vendor products for PBKDF2 in two roles: deriving keys from passwords or passphrases, and storing password verifiers. Include backup and file-encryption tools, identity platforms, and any hashing routines written in-house. Ask each team and vendor to confirm the list. This step is done when you hold one inventory that names each system, its owner, and which role PBKDF2 plays there, so that later steps have a complete set to work from.

  2. Record the PRF, iteration count and salt

    For each entry in the inventory, record the pseudorandom function (for example HMAC-SHA-256 or the ASN.1 default HMAC-SHA-1), the iteration count, the salt length, and the derived key length. Compare the salt against the minimum that NIST SP 800-63B-4 sets (at least 32 bits) and the guidance in RFC 8018 on salt randomness, and compare the iteration count against the minimum of 1,000 that RFC 8018 gives. Mark any entry that falls short. This step is done when every system has a recorded row showing its parameters and its status against each reference.

  3. Ask vendors about a memory-hard move

    NIST's May 2023 notice says the planned SP 800-132 revision would approve an additional memory-hard password-based key derivation function and password hashing scheme, and that draft preparation had not started. Because no such scheme is yet approved, ask each vendor in writing whether they plan to move to a memory-hard scheme once NIST approves one, what their timeline is, and how they would migrate stored data. Keep the answers. This step is done when each vendor has responded in writing or the non-response is recorded.

  4. Plan iteration increases and rehashing

    Plan to raise iteration counts over time, since NIST SP 800-63B-4 says the cost factor should be as high as practical without hurting verifier performance and raised over time. Where you control the verifier, plan to rehash stored passwords to the new parameters on the next successful login, so that existing users move forward without a forced reset. Test the change in a staging environment and measure login latency before rollout. This step is done when a written plan exists for each system, covering the new count, the rehash-on-login logic, and the test results.

  5. Record the decision and dates for reviews

    Write down the decision for each system: keep PBKDF2 with stated parameters, move to a different scheme, or wait for vendor action. Record the date of the decision, the owner, the sources it relies on (RFC 8018, NIST SP 800-63B-4, NIST SP 800-132), and the date of the next review. Keep this record with the inventory so that auditors and customer security reviewers can see the reasoning and the current parameters. This step is done when each decision is filed, dated and assigned an owner.

Claims readers meet about PBKDF2 and quantum computers, and what the sources say

Readers often hear strong statements about PBKDF2 and quantum computers, some of them contradictory. Each card below states a claim, then the published position from the sources on this page and where to read it. The cards separate claims about the hash, the iteration count, the salt, and the NIST guidance that names or omits PBKDF2.

PBKDF2 is broken by quantum computers

Sources on this page do not say that PBKDF2 is broken by quantum computers. The NIST FAQ notes that most quantum attacks on proposed post-quantum cryptosystems involve some variant of Grover's algorithm, and that its practical advantage is smaller than the theoretical quadratic speedup. The UK NCSC says the security of symmetric cryptography and secure hash functions is not significantly impacted by quantum computers. PBKDF2 is built on HMAC and a hash function, so the relevant question is how Grover's algorithm applies to the guessing it must resist. Check the NCSC page and the NIST FAQ before relying on any summary of this claim.

NCSC next steps

Larger AES keys are the only fix

The ANSSI document says Grover's algorithm quadratically speeds up exhaustive key search for symmetric algorithms, and gives doubling the key length, such as using 256-bit keys instead of 128-bit keys for AES, as its example. It also suggests 384-bit hash outputs for SHA-2 and SHA-3 against collision finding. For PBKDF2, the sources point to the iteration count, the salt, and the choice of PRF as the parameters an operator controls, and NIST SP 800-63B-4 says the cost factor should be raised over time. Longer AES keys are one published mitigation for symmetric key search, but the sources do not present them as the only fix for password hashing.

ANSSI views on PQC

PBKDF2 is named as the approved choice

NIST SP 800-63B-4 says verifiers SHALL store passwords in a form resistant to offline attacks, salted and hashed with a suitable scheme, and that an approved scheme from the latest revision of SP 800-132 or updated NIST guidance should be used. The text does not name PBKDF2. RFC 8018 recommends PBKDF2 for new applications, but it is an IETF specification, not a NIST approval. NIST has said it plans to revise SP 800-132 to add a memory-hard function and more guidance on PBKDF2. Confirm the current NIST text before writing that PBKDF2 is the approved choice.

NIST SP 800-63B-4

Quantum computers can reverse stored hashes today

Sources on this page do not say that quantum computers can reverse stored hashes, and none describes a working attack of that kind. RFC 8018 says password-based cryptography is limited because offline password guessing is possible, and that passwords must be selected well. That risk comes from guessing, which exists with or without quantum computers. Verify the current state of quantum hardware and attack research from current sources before making any statement about present capability.

RFC 8018

Iteration count sets the strength

RFC 8018 quotes NIST SP 800-132 advising an iteration count as large as possible while key generation time stays acceptable, with a minimum of 1,000 iterations. It notes that a count of c adds roughly log2(c) bits of strength against trial-based attacks. NIST SP 800-63B-4 says the cost factor should be as high as practical and raised over time. These are the published levers for PBKDF2 strength, and they apply to classical guessing as well as to any future quantum speedup. Check the iteration count against current NIST text and your own hardware budget.

RFC 8018

Questions people ask about PBKDF2 and quantum attacks

Does a larger iteration count make PBKDF2 safe against quantum attacks?

A larger iteration count adds strength against trial-based attacks, but the published guidance quantifies it only in terms of bits. RFC 8018 Section 4.2 notes that an iteration count c adds roughly log2(c) bits of strength against trial-based attacks, so doubling c adds about one bit. NIST SP 800-132 advises using as large a count as possible while key generation time stays acceptable, with a minimum of 1,000 iterations. The sources do not state a specific count that makes PBKDF2 quantum safe. Confirm the count you run against current NIST guidance and your own latency budget.

Do stored PBKDF2 password hashes need to be replaced now?

The sources do not say that stored PBKDF2 hashes must be replaced because of quantum computers. NIST SP 800-63B-4 requires verifiers to store passwords in a form resistant to offline attacks, using a suitable salted and hashed scheme, and says an approved scheme from the latest SP 800-132 revision or updated NIST guidance should be used. It also says the cost factor should be raised over time. Review existing hashes against that guidance, raise iteration counts where your system allows, and check whether your verifier adds the secret-key step that SP 800-63B-4 recommends.

What do the sources say should replace PBKDF2?

NIST's May 11, 2023 notice says the SP 800-132 revision would approve an additional memory-hard password-based key derivation function and password hashing scheme, and would add guidance on using PBKDF2. Draft preparation had not started as of that notice. The sources do not name the replacement algorithm, so do not assume one. Track the SP 800-132 revision and the NIST SP 800-63B-4 text, and ask your vendor which memory-hard scheme, if any, they plan to offer and when.

Is data protected by PBKDF2 at risk from quantum computers today?

The sources do not describe a current quantum attack against PBKDF2. NIST's post-quantum FAQ says that Grover's algorithm offers a smaller practical advantage than its theoretical quadratic speedup, because quantum hardware is costly and massively parallel attacks reduce its benefit. The UK NCSC states that the security of symmetric cryptography is not significantly impacted by quantum computers. PBKDF2 is built on HMAC, which is symmetric. The main documented risk to PBKDF2 stored passwords is offline guessing, which RFC 8018 Section 8 describes as the limit on password-based security.

Has NIST set a deadline for retiring PBKDF2?

The sources do not show a NIST deadline for retiring PBKDF2. NIST SP 800-132 was published in December 2010, and NIST announced a planned revision on May 11, 2023. The revision notice describes the planned changes but gives no retirement date. NIST IR 8547 covers the move from quantum-vulnerable public-key algorithms and does not mention password hashing or key derivation. Check the status of SP 800-132 on the NIST site before setting a planning date.

What should I ask a vendor about PBKDF2 and quantum risk?

Ask the vendor which PBKDF2 PRF and iteration count they use for stored credentials, and whether they support HMAC-SHA-256 or larger outputs as RFC 8018 lists. Ask whether they follow SP 800-63B-4, including the minimum salt length and the secret-key step. Ask whether they have a plan to move to a memory-hard scheme once NIST approves one, and what that migration involves for existing hashes. Request the version and configuration the answer applies to, since the RFC and NIST sources describe options rather than a single required setting.

How much does it cost to migrate stored PBKDF2 hashes?

The sources do not give a price or effort estimate for migrating PBKDF2 hashes, so no figure is stated here. Cost depends on the number of stored credentials, whether your system can rehash them at login or needs a batch job, and how many applications read those hashes. Recurring costs come from longer key derivation times on your login servers. Ask for the scope in writing, including which hashes are re-derived, how users are handled who do not log in during the migration window, and how the work is tested.

Dates the guidance sets for PBKDF2 and its successors

This timeline runs from the original PBKDF2 specification in RFC 2898 (September 2000) to its replacement in RFC 8018 (January 2017), then through NIST SP 800-132 (December 2010) and the May 11, 2023 notice that NIST will revise it. The later entries are the NCSC page (14 August 2024), the NIST PQC FAQ update (December 4, 2026) and NIST IR 8547 (10/27/26). Read the chain as a series of documents rather than deadlines: the sources listed here set no future date for PBKDF2 itself, and the NIST revision notice says draft preparation had not started. Check the current revision of SP 800-132 and any new NIST guidance before relying on PBKDF2 for long-lived data.

Dated documents in the PBKDF2 guidance chain, with no future deadlines stated for PBKDF2.

How DeployOpen works on this

DeployOpen helps teams find where PBKDF2 is used to derive keys or store password verifiers, then review each use against the NIST and RFC guidance that applies to it. The work covers the systems that hold long-lived protected data and the verifier settings that govern how hard offline guessing is.

How we scope

  • Agree in writing which applications, databases and key-management components are in the review.
  • Confirm which data must stay protected for many years, since that determines which uses matter most.
  • Define the deliverables, including an inventory of PBKDF2 parameters such as PRF, salt length and iteration count.

How we build

  • Locate PBKDF2 calls in code, configuration and libraries, and record the PRF and iteration count each one uses.
  • Compare salt length and iteration settings against the minimums and guidance in RFC 8018 and NIST SP 800-132.
  • Test whether password verifiers and derived keys can be attacked offline, and document findings with fixes.

How we hand over

  • Deliver a written report that lists each PBKDF2 use, its parameters, the finding and the recommended change.
  • Include a migration plan that covers rehashing stored verifiers and moving to any scheme NIST later approves.
  • Walk your engineering and security teams through the findings so they can apply and verify the changes.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer if NIST revises SP 800-132.
  • Ask any quote to state which systems, PRFs and iteration settings it covers, and what a retest includes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.