An unofficial, read-only Hacker News reader.

Ask HN: Is RSA in Jeopardy?

21 points by lyfeninja 3 days ago | 17 comments on HN

Comments (17)

  1. I've seen reports about being able to factor large numbers, but the quoted complexities are worse than existing algorithms. The difference is that the new algorithms are guaranteed, whereas the fastest existing algorithms can fail in some circumstances.

    So based on what I've read so far, the answer to your first question is:

    Yes I've heard the reports, and no, it's not true that factoring is broken.

    The answer to your second question is that we already know that quantum computers will render RSA ineffective, and people are already working on cryptosystems that are quantum resistant:

    https://en.wikipedia.org/wiki/Post-quantum_cryptography

    Note: I'm not an expert, but I'm watching this with interest. I'd be happy to hear from someone who is more knowledgeable.

  2. 2. It sucks to live in a world without public keys, but it is what is is. We may need to return to 1980's style banking sooner or later. Checks in the mail. Hop in your car and meet people when you need to conduct business.
    Replies (2)
    1. Maybe trusted parties brokering giant one-time pads is the only way....
    2. Even if both classic and post-quantum encryption falls, a one-time pad cryptography will survive. Bank users will just have a cheap flash drive with 1GB of random data, and that's enough for thousands of transactions.
      Replies (1)
      1. And the bank will have hundreds of millions of gbs to match?
        Replies (1)
        1. Yesss! A road filled with trucks carrying hard drives, Mad Max style.

          jk, but banks have extra opportunities to compress and proceed payments in chunks. And banks still usually have to transport physical money anyways.

          For a longer term there is an idea of a quantum-entangled encryption data transfer channel, such as E91 protocol.

          Replies (1)
          1. Do you understand how a one time pad works? If the bank sends every customer 1GB of random data, they need an exact copy of that random data. Processing payments “in chunks” doesn’t help anything? Compression probably won’t help them much either.
            Replies (1)
            1. You misunderstood me. The bank won't send keys over the wire. Customers will visit banks personally. Plastic cards already work in this way; what changes is the size of a key.

              As for bulk processing and compression I meant bank to bank communication.

              The price of this schema does not matter: banks will simply increase the fee to keep transfers profitable (for banks).

  3. 1. Who knows, but from a threat model perspective you should assume it, certainly if you work on things that can be stored and decrypted later, e.g. messaging etc. 2. Move to Post-Quantum Cryptography algorithms. Always use unique nonces per message.
  4. No this obviously isn't true. Otherwise the world would be on fire and it'd be front-page news. People would be out in the streets.

    I'm not convinced viable quantum computers will become a reality during my lifetime. It's prudent that some government agencies are taking precautions (the secrets they guard must be secure for an indefinite period of time) but for most mere mortals it doesn't matter much. Most secrets have an expiration date. Your login cookie is only valid for a limited period of time, for example.

  5. There is no compelling reason to continue using it for SSH - it hasn't been the default for awhile and I think its worth rotating any that you depend on. Ed25519 is the default but the latest OpenSSH has an even better choice that is described as post-quantum: mldsa44-ed25519

    TLS is a different story. Let's Encrypt ISRG Root X2 is their ECDSA P-384 variant, issued in 2020 and has good deployment footprint but their default chain is the one cross-signed by X1, which is telling. I think if RSA is cracked its very bad news.

  6. 2. There are other algorithms. For example Curve25519. Even if someone knows how to factor large prime numbers it’s not guaranteed that it would make Curve25519 weaker.

    It’s probably a good idea to avoid RSA: https://blog.trailofbits.com/2019/07/08/fuck-rsa/

  7. >2. Given most of the Internet relies on RSA, now what?

    Since AI was used to break it, AI will be seen as the first contender for making a replacement.

    Likely it will be so advanced we won't have a clue if it's a genuine replacement or just theater. But (just like now) most people won't care because it's what everyone else uses too.

    Replies (1)
    1. Huh? The replacement is elliptic curves and the world has slowly been moving to them since long before large language models
      Replies (1)
      1. Worth pointing out that elliptic curve cryptography is not quantum resistant. Anyone looking to really future-proof their systems should look to the algorithms endorsed by CNSA 2.0.
  8. AI is growing exponentially, honestly no breakthroughs would be surprising at this point. that is especially true the further you look out, five years from now looking back to these times the difference could be insane.
  9. What reports are those?

    RSA has been on the way out for years and accelerating it would be good. Most of the internet does not rely on RSA, swapping it out for better PK algorithms has been going on for years but getting to 100% been delayed by laggard web CAs etc.