r/AskComputerScience • u/Delicious-Click-4714 • 19h ago
ELI5 what is the worry about rsa potentially breaking due to AI and the rush to move to post quantum cryptography?
So there is a worry about AI breaking rsa. What is rsa and ecc ?? How will post quantum cryptography be more resistant to AI??
0
Upvotes
9
u/TonySu 14h ago
The rumour is that the AI hyperscalers have a proof that classical computers can do quantum polynomial algorithms in polynomial time. If something is solvable in polynomial time, then it’s not cryptographically safe.
We know that RSA can be solved in polynomial time by quantum computers, if there is indeed a proof that P = BQP then there would exist an algorithm to solve it in polynomial time with classic compute. We almost definitely don’t have any idea what that algorithm is, but the fact that it exists and that AI might find it is renders RSA extremely vulnerable.
2
u/peldor 5h ago
All encryption has a self-life. We know that as CPU’s get faster, stronger encryption will be needed to protect things.
RSA-2048 was expected to be end-of-life in 2035. So in a week we went from “we have 10 years to migrate“ to “migrate yesterday”. There are real tangible problems with the timeline compressing like that.
The obvious is having to do 10 years of upgrades in a day. The other is having to pay for 10 years of upgrades all at once.
This is the equivalent to cities having to replace all of their traffic lights. They had a maintenance plan to replace traffic lights as they aged out, but they aged out all at once…with no warning.
It’s going to be an expensive problem to fix.
1
u/Discordbothost 5h ago
Separate the math from who finds an attack. RSA relies on factoring large numbers (15 = 3 x 5 is a toy example). PQC uses different problems, such as lattices. It isn't 'AI-proof': new attacks still need checking against each algorithm and key size.
1
u/JaguarMammoth6231 19h ago
The post quantum cryptography is not needed because of AI, it's needed because of quantum computers, which already exist (but don't quite have enough qubits to break cryptography yet, though it's coming in 5-10 years)
0
u/Broad-Promise6954 18h ago
RSA stands for Rivest, Shamir, Adelman. These are the last names of Ron Rivest, Adi Shamir, and Leonard Adelman, who came up with a particular public key encryption algorithm using large prime numbers. So "RSA encryption" is a particular algorithm for doing cryptography.
EC (not ECC, which is something else entirely, for error correction) is short for Elliptic Curve. Combined with several other letters, this is a very different algorithm, also for doing cryptography.
So these are just two ways to do cryptography today.
The rumor is that there's a way to break both of these in some number of days or weeks using fancy quantum computing algorithms on fancy quantum computers. If that's actually true, then someone using either of these methods could have a private conversation decrypted some time after the conversation is likely over. That's not good security, although it's also not "panic and die immediately" serious for most people.
The post-quantum encryption algorithms (which have been standard for a few years at this point, but aren't universally used yet) are not in this group of supposedly threatened encryption, so some, including the USA's NSA, are encouraging everyone to switch to these ASAP.
0
u/LitespeedClassic 18h ago
RSA and ECC are two different mathematical methods for encryption. Both rely on what are called one-way functions, which are functions that are easy to compute but whose inverse is hard to compute.
Reading between the lines of the NSA guidance, RSA has not been hacked. What has happened is that a particular use of ECC has been shown to be less strongly protected as was thought. It uses a key of length 256 bits which was thought to take until the universe ends to crack. Unfortunately it seems they’ve figure out how to reduce the time to attack it significantly. The current belief is that it is not hackable today, but if GPUs continue to get faster it may be hackable by a company or a government for many million dollars within the next few years.
Various bad guys are storing internet traffic so that once it becomes feasible to break it they’ll be able to break your traffic now.
Do the NSA is telling everyone to move off the 255 bit ECC as soon as possible.
0
u/jpgoldberg 17h ago
It’s not so much a rush as a “let’s pick up the pace” for something that has been going on for a very long tiThe recent math results came faster than anticipated, but they don’t radically change the course that cryptographers have been on to replace RSA and ECDH.