r/programming • u/fagnerbrack • Jul 10 '26
Quantum Computers Are Not a Threat to 128-bit Symmetric Keys
https://words.filippo.io/128-bits/
218
Upvotes
r/programming • u/fagnerbrack • Jul 10 '26
102
u/NamedBird Jul 10 '26
Quantum computers are only a threat to classical asymmetric cryptography.
(And depending on the algorithm, even a 64-bit symmetric key can be secure.)
50
u/Zettinator Jul 10 '26
Did anyone suggest otherwise? It's well known that quantum computers don't really help with symmetric cryptography.
The problem is, of course, that we commonly use asymmetric methods like RSA or EC to exchange the secrets used for symmetric cryptography. And those are usually threatened by quantum computing.
196
u/card-board-board Jul 10 '26
I'm about as worried about quantum computers making standard encryption obsolete as I am about nuclear fusion making fossil fuels obsolete.
Even if the math worked out, it's perpetually 10 years away.
8
u/ScottContini Jul 11 '26
Link to comments when this was posted here 2 months ago
18
u/awesomePop7291 Jul 10 '26 edited Jul 11 '26
It's convincing, but... there are also very few reasons to use 128-bit keys today.
On most hardware AES-256 is not much slower (~10%, but we're still talking about 4 GB / s /core for AES-256-GCM with AES-NI and 14 GB / s / core with VAES512) and ChaCha20 (which I prefer over AES) is 256-bit anyway.
Also, for the compliance part, I would not be so sure as Australia, the NSA and ECRYPT-CSA (Europe) all recommend 256-bit keys and at least 384-bit hashes.
2
u/DrCasperDarling Jul 14 '26
Yeah, Grover's algorithm allows sqrt(N) time unstructured search to brute force symmetric cryptography, which means that your 128-bit key will be essentially 64 bits in strength, so it will be good to mitigate to 256.
The real issue is asymmetric cryptography, where Shor's algorithm can solve the large integer factorization or discrete log problem in polynomial time, so there are mitigations being made: https://csrc.nist.gov/projects/post-quantum-cryptography
-12
u/[deleted] Jul 10 '26
[removed] — view removed comment
-2
u/[deleted] Jul 10 '26
[removed] — view removed comment