A cost model for running Grover's search on fault-tolerant hardware says one GPU cracks salted SHA-256 passwords faster until about 59.5 bits of uniform search space. If it holds, Grover alone does not justify longer passwords.
| Circuit | model | for 1 GPU | for 8 GPUs | Crossover runtime | Crossover |
|---|---|---|---|---|---|
| Amy | Full-depth | 71.6 | 77.6 | 2,560 yr | |
| Amy | Mag.-state | 83.7 | 89.8 | 11.2 million yr | |
| Jang | Full-depth | 59.5 | 65.5 | 213 days | |
| Jang | Mag.-state | 76.2 | 82.2 | 62,100 yr |
Going deeper
| Hash | (bits) | (qubits) | () | full-depth | mag.-state-lim. | ||
|---|---|---|---|---|---|---|---|
| SHA-256 | 20 | 23 | 27 | 22.3 min | 12.6 hr | ||
| SHA-256 | 30 | 27 | 29 | 11.9 hr | 18.5 days | ||
| SHA-256 | 40 | 29 | 33 | 15.8 days | 2.17 yr | ||
| SHA-256 | 56 | 33 | 37 | 11.1 yr | 630 yr | ||
| SHA-256 | 64 | 37 | 39 | 178 yr | 10,700 yr | ||
| SHA-256 | 80 | 41 | 45 | 45,500 yr | 2.97 million yr | ||
| SHA-256 (Jang) | 20 | 21 | 25 | 20.6 s | 57.1 min | ||
| SHA-256 (Jang) | 30 | 23 | 27 | 11 min | 33.5 hr | ||
| SHA-256 (Jang) | 40 | 27 | 31 | 5.86 hr | 59.9 days | ||
| SHA-256 (Jang) | 56 | 31 | 35 | 62.5 days | 49.1 yr | ||
| SHA-256 (Jang) | 64 | 33 | 39 | 2.74 yr | 809 yr | ||
| SHA-256 (Jang) | 80 | 39 | 43 | 701 yr | 230,000 yr | ||
| BLAKE2b | 20 | 25 | — | 3.09 hr | — | ||
| BLAKE2b | 30 | 27 | — | 4.12 days | — | ||
| BLAKE2b | 40 | 31 | — | 132 days | — | ||
| BLAKE2b | 56 | 35 | — | 92.5 yr | — | ||
| BLAKE2b | 64 | 37 | — | 1,480 yr | — | ||
| BLAKE2b | 80 | 43 | — | 379,000 yr | — |
Picture a thief with a ring of keys trying a lock. The usual thief tries keys one by one, very fast. A quantum thief is promised a shortcut: far fewer tries, roughly the square root of the number of keys.
The catch is that each quantum try is not one quick turn of the key. The thief must build the whole lock out of fragile, carefully protected parts, turn the key, then take the lock apart again, every single try. The authors add up how long that takes using published designs, and each try comes out as a sizable fraction of a second.
Meanwhile the ordinary thief with one graphics card turns billions of keys a second. Only for huge key rings, far bigger than most people's passwords, does the quantum thief catch up, and even then after months or millennia. Guessing the likeliest keys first helps both thieves and does not change the winner.
The abstract, word for word, with the six densest phrases unpacked.
Grover’s algorithm is widely regarded as a significant threat to password security because it reduces the complexity of unstructured searches from O(N) to O(sqrtN)1, but does this reduction translate directly into faster password-cracking times? Using Grover’s algorithm for password guessing requires the implementation and repeated execution of the password-verification function as a reversible, fault-tolerant quantum circuit2. This paper analyses the computational and hardware costs that are often overlooked when evaluating the impact Grover’s algorithm has on password security. We review published resource estimates for SHA-256 and related primitives, showing that, due to differences in circuit scope, the reporting of gate and depth metrics, and varying optimisation assumptions, direct comparison is not possible3. This paper presents a fault-tolerant resource model used to cost each Grover iteration in physical qubits and wall-clock attack time. Under the hardware assumptions and circuit implementations considered4, the earliest crossover at which a Grover-based attack outperforms a single classical GPU occurs at a uniform search-space size of 59.5 bits5. For a uniform search space of 220 candidates, the expected classical brute-force search time on a single GPU is between 8.7×105 and 5.6×107 times shorter than the modelled full-depth Grover runtimes. Applying our model to published query estimates for non-uniform password distributions does not overturn the classical runtime advantage in the scenarios considered6. These findings demonstrate that Grover’s theoretical reduction in search complexity does not necessarily translate into a practical advantage for password cracking, particularly at search-space sizes relevant to human-chosen passwords.
Two lines of work meet here: how to search with Grover, and what a quantum hash costs.
Read four parts of it, in this order.
The conclusions rest on modelling choices; check these first.
Assumptions and Limitations:
• The SHA-256 estimates assume a single-block computation, with the password, salt and padding fitting within one 512-bit block. Longer inputs may require additional compression-function evaluations, increasing the oracle cost. • The full-depth model charges one surface-code cycle per circuit layer and assumes that T -states are always available on demand, providing a very optimistic runtime estimate. Amy et al. assign two cycles per logical CNOT and d cycles per Hadamard, where d is the surface-code distance. They also identify magic-state distillation as the dominant timing constraint for SHA-256 [1]. The magic-state-limited model accounts for this by assuming one distillation interval per T layer, with intervening Clifford gates completed within that interval. Both models make optimistic assumptions about execution time and parallelism, which could shift the crossover point to higher password entropies. • Distillation follows Amy et al.’s concatenated 15-to-1 scheme, including their pipelining estimate φ and injection error pin=10p. Newer methods can reduce distillation overheads [26, 14], potentially reducing physical-qubit requirements and shifting the magic-state-limited crossover to lower password entropies. The full-depth runtimes are unaffected by this choice. • Distillery requirements are estimated from the average T -state consumption rate. Variations in consumption between circuit layers and the additional storage and routing required to supply magic states on demand are not modelled. • Distilleries are protected by their own code distances, so only the circuit’s Q(h) qubits contribute to the space-time volume V used to determine d. • Feed-forward latency (a 10μs reaction time per T layer [13]) as well as routing and SWAP overhead are excluded from TQ. For Amy et al.’s circuit, the reaction limit (1.41 s per iteration) remains below the full-depth runtime (1.66 s). For Jang et al.’s circuit, the reaction limit is four times higher (107 ms compared to 25.6 ms) and would increase its crossover in Table 4 from 59.5 bits to approximately 63.6 bits. Routing and swap overheads could shift the crossover further upwards. • We do not model QRAM, parallel Grover searches across multiple quantum processors, or compilation latency. Quantum search parallelisation could lower the crossover at additional hardware cost, while compilation latency would increase total attack time. • Only surface codes are modelled; quantum LDPC codes promise lower qubit overheads [9]. But lower qubit requirements alone do not imply lower runtimes. • Rounding Niter costs only O(1/N) in success probability. However, the budgets Vε(d)≤1 and pout=1/Gtotal each permit up to one expected failure per run. Assuming independent rare errors and saturation of both budgets, the probability of an error-free run is approximately e-2≈14%. Repetitions are not accounted for in TQ and would shift the crossover to larger search spaces. • The brute-force diffusion operator and comparator are excluded from Coracle and Gtotal; for n=64, these components contribute less than 1% to the T -count, but nevertheless would increase the total runtime if modelled.
These crossover points are not universal thresholds, as they depend on the underlying assumptions regarding the classical baseline and the fault-tolerant architecture. The assumptions with the largest effect on runtime are the choice of hash circuit, the execution time of logical gates and magic-state supply. The surface-code cycle time and classical GPU resources also affect the crossover. The reported crossovers are conditional estimates. Since classical time increases as 2n and Grover’s algorithm scales as 2n/2, doubling the number of GPUs increases the crossover by two bits. In contrast, k quantum machines reduce Grover’s runtime only by a factor of sqrtk (see Section 4.2). In the full-depth model, the crossover for k GPUs is given by
Tables 2 and 3 of Dürmuth et al. [11] give the query costs for single-target and large-scale attacks, respectively, exploiting non-uniform password distributions. Their numerical estimates consider approximately 6×107 distinct candidate passwords and assume knowledge of the underlying password distribution. We apply the per-query costs of our fastest model, the full-depth Jang et al. implementation of SHA-256, and those of a single GPU to their published query counts. Both classical and quantum attackers benefit from the reduction in queries afforded by non-uniform password distributions.We retain Dürmuth et al.’s assumed Grover constant of c=1, costing each reported quantum query as one Grover oracle evaluation, including hash computation and uncomputation. The large-scale strategy additionally requires coherent access to account-specific salts and hashes, as Grover search is performed over users rather than password candidates. These costs, together with overheads omitted from the published query estimates, are not included here.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all