• exu@feditown.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    14 hours ago

    I’m no cryptographer, so take this with a good heap of salt.

    Basically, all encryption multiplies some big prime numbers to get the key. Computers are pretty slow at division and finding the right components used to create the key takes a long time, it’s basically trial and error at the moment.
    If you had an algorithm to solve for prime numbers, you could break any current encryption scheme and obviously cause a lot of damage in the wrong hands.

    • patatahooligan@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 hours ago

      Basically, all encryption multiplies some big prime numbers to get the key

      No, not all encryption. First of all there’s two main categories of encryption:

      • asymmetrical
      • symmetrical

      The most widely used algorithms of asymmetrical encryption rely on the prime factorization problem or similar problems that are weak to quantum computers. So these ones will break. Symmetrical encryption will not break. I’m not saying all this to be a pedant; it’s actually significant for the safety of our current communications. Well-designed schemes like TLS and the Signal protocol use a combination of both types because they have complementary strengths and weaknesses. In very broad strokes:

      • asymmetrical encryption is used to initiate the communication because it can verify the identity of the other party
      • an algorithm that is safe against eavesdropping is used to generate a key for symmetric encryption
      • the symmetric key is used to encrypt the payload and it is thrown away after communication is over

      This is crucial because it means that even if someone is storing your messages today to decrypt them in the future with a quantum computer they are unlikely to succeed if a sufficiently strong symmetric key is used. They will decrypt the initial messages of the handshake, see the messages used to negotiate the symmetric key, but they won’t be able to derive the key because as we said, it’s safe against eavesdropping.

      So a lot of today’s encrypted messages are safe. But in the future a quantum computer will be able to get the private key for the asymmetric encryption and perform a MitM attack or straight-up impersonate another entity. So we have to migrate to post-quantum algorithms before we get to that point.

      For storage, only symmetric algorithms are used generally I believe, so that’s already safe as is, assuming as always the choice of a strong algorithm and sufficiently long key.