There’s a server, a client, and a hacker in a network. For encryption, the client and the server need to share their private keys. Wouldn’t the hacker be able to grab those during their transmission and decrypt further messages as they please?

  • Turun@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    7 months ago

    Just a nitpick:

    If you know the private key it is trivial to calculate the public key, but the reverse isn’t true

    The public key and the private key are just two big prime numbers. The “trivial to compute” part only works once more information has been shared over the network, like it happens during key exchange. If you were to swap the prime number before initiating any contact it would work the same way.