Hacker News new | ask | show | jobs
by amluto 4 days ago
I’m replying to someone literally saying they think 1024-bit RSA is safe. 30x cost to break over something already broken is not much of a safety margin.
2 comments

RSA2048 is 10^9 more bits. You should still be using ECC since it's much more efficient crypto per bit of key material, but I don't think we'll be seeing practical RSA1024 breaks let alone RSA2048 unless a hypothetical QC gets built (which I also am betting against).
It is when whatever you're protecting isn't worth the running cost of 60,000+ GPUs.
People used to accept DES because the cost of breaking it seemed like more than anyone would be willing to spend. That was then and this now: computing has gotten much cheaper and it’s wildly insecure.

You size your cryptography so that a hypothetical advanced civilization dedicating an entire Dyson sphere and a whole solar system worth of unfathomably efficient computers still can’t break it with math this is or seems likely to become available.

The latter is not actually much more expensive than the former, and it’s a lot safer. (We’re talking about the difference between 128-bit and 64-bit keys here, although one can imagine certain classes of threat model for which even 128-bit is a bit uncomfortably low.)

Put differently, there’s a reason that most guidance suggests 2048 or 4096-bit keys for RSA, DSA and DH. (There are unrelated reasons that classic natural-number-based DH is not recommended any more - doing it right is a mess. On the flip side, the large key sizes in these older algorithms might help resist quantum attack for longer than the newer elliptic-curve variants.)

Just so we understand the scale it’s ~5B to build a data center to host those GPUs + 10s of millions per day in opex. For 1024 which was deprecated in 2013. It seems like an insane amount of money for cracking key sizes that shouldn’t even be in use and aren’t protecting anything valuable. At this rate, 2048 is impossible to crack. The reason 2048 was recommended against is that crypto people are worried about advances in cryptanalysis attacks - those haven’t actually materialized. You should still use EC because it’s more efficient per bit but I doubt RSA4096 will ever fall to classical methods and I am skeptical a QC capable of cracking it will be built.