← Back to section · Digital Security

Password Storage Through a Quantum Lens: Why Slow Hashing Still Holds

Password hashing does not rest on public-key hardness. Grover's algorithm only yields a quadratic speedup. How salting, slow hashing and memory hardness jointly determine the safety margin after a database leak — and what actually needs to change.

Published 22 November 2026 · 5 min read · PQ Frontier

Password Storage Through a Quantum Lens: Why Slow Hashing Still Holds
AI-generated site artwork
Video explainer · Authentication: From Passwords to Passkeys

What password storage is actually defending against

In the password authentication chain, the most fragile link on the server side is not the login endpoint but the password database itself. Once a hash database leaks, the attacker escapes the rate limits of the online interface and can test enormous numbers of candidate passwords offline and silently, on their own hardware. Everything in password storage design — salting, slow hashing, memory hardness — exists to make that offline guessing campaign too expensive to be worthwhile. Only with that framing can we judge what quantum computing actually changes.

A common misunderstanding conflates hashing with encryption and concludes that quantum computers will topple all of cryptography at once. In fact, password hashing relies on the preimage resistance of a hash function: given an output, find no input. Its security rests on no known quantum-easy problem. Shor’s algorithm targets algebraic problems with periodic structure — factoring and discrete logarithms; against generic hash preimage search it has no purchase.

The Grover speedup: an account that can be settled

Quantum computing does accelerate password guessing, but the source is Grover’s search algorithm: to find one qualifying input among N candidates, classical brute force needs about N attempts, while Grover needs about √N iterations. In password terms, a password with 60 bits of entropy costs a classical offline attacker roughly 2^60 hash evaluations, and a quantum attacker roughly 2^30 Grover iterations — which sounds like security cut straight in half.

But this account has two details that are often skipped. First, each Grover iteration is not one simple hash call: it requires a quantum oracle that reversibly executes the entire hash circuit in superposition, with a gate count per iteration far exceeding a single classical hash, and the iterations must run serially — they cannot be stacked in parallel the way classical GPU clusters scale out. Parallelising Grover yields only a square-root benefit as well: M quantum devices in parallel buy a factor of √M. Second, the attacker still faces per-password random salts: salts defeat precomputed rainbow tables, so every record must be guessed from scratch. Taken together, claims that Grover “quarters” password security are exaggeration; the precise statement is that it halves the effective entropy, and the defender can multiply the cost parameters to restore the margin several times over.

Slow hashing and memory hardness: the defender’s lever

The defender holds a lever that works in the classical world and keeps working in the quantum one: make each individual guess expensive. Password hashing functions such as bcrypt, scrypt and Argon2 are designed exactly for this. Cost parameters can push a single hash computation into the hundreds-of-milliseconds range; Argon2id — the first choice recommended by OWASP and RFC 9106 — goes further by forcing the use of large amounts of memory, so an attacker cannot stack thousands of guessing cores on a single chip. Memory bandwidth and capacity are physical constraints from which quantum hardware is not exempt: realising a memory-hard function inside a quantum oracle costs even more.

Put both sides together: if a server is willing to spend roughly half a second of computation and tens of megabytes of memory on one legitimate login, an attacker guessing 2^40 candidates pays that bill 2^40 times. Even with Grover halving the exponent, the defender need only raise the cost parameters moderately, or require longer passwords, to restore the original safety margin. This is precisely the dividing line between “quadratic speedup, manageable” and “exponential break, unmanageable”: RSA and ECC collapse exponentially before Shor and must be migrated wholesale; password hashing before Grover needs only parameter adjustment, with the paradigm intact.

Where entropy comes from: the other half of the defence account

The other half of the ledger sits on the user’s side: the entropy of the password itself. Slow hashing raises the unit price of each guess; password entropy determines the size of the guessing space; the total cost is the product of the two. A password invented by a human and then dressed up as “capital letter, digit, symbol” has far less real entropy than its length suggests — attackers’ dictionaries and rule engines order candidates precisely by human password-formation habits. This is why NIST SP 800-63B made its well-known turn in password policy: favour length over enforced complexity, abolish periodic forced rotation (which only breeds predictable increments), change passwords when there is evidence of compromise instead, and require servers to screen new passwords against known breach corpora and reject matches. These recommendations hold in the classical world and hold equally in the quantum one, because the variables they act on — candidate space and unit price — are exactly the two multipliers in the Grover account. When a password manager generates long random passwords, or a long passphrase pushes entropy past 60 bits, combined with modern Argon2id parameters, the total cost of offline cracking becomes so high that even the quantum discount of “halved entropy” has nothing to act on. In other words, the defender does not need to wait for quantum computers to take final shape to settle this account: both the unit price and the space are in their own hands.

The real migration checklist

Quantum-era hardening of password storage is therefore about cleaning up legacy practice, not swapping algorithms. First, eliminate all fast-hash storage: MD5, SHA-1 or a single round of SHA-256 for passwords was already unacceptable in the classical world — after a leak, weak passwords are recovered in bulk within minutes, quantum or not; fix the older mistake first. Second, verify that every record has its own random salt and that the hash function is Argon2id, bcrypt or scrypt, with cost parameters reviewed against current hardware — many systems still run bcrypt cost factors set a decade ago. Third, add a “pepper” beyond the salt: mix a server-side secret into the password hash, kept in an HSM or a separate key service, so that a leaked hash database alone is still missing a piece of the puzzle. Fourth — and most important — a password should never be the only line of defence. Multi-factor authentication, login anomaly detection and screening new passwords against known breach corpora raise the security level far more than any quantum-anxious tinkering with the hash algorithm.

The conclusion is simple: password storage is one of the few areas in the quantum-threat landscape where the paradigm is unaffected. Doing the fundamentals well — slow hashing, salting, modern parameters, multiple factors — is exactly the right preparation for the quantum era.

Tags: Password HashingArgon2Grover's AlgorithmAuthentication