Public-key cryptography
The conceptHow a stranger can send you a secret without ever meeting you
Public-key cryptography uses two linked keys: a public key you give everyone and a private key you keep. Whatever the public key locks, only the private key opens, like a padlock anyone can snap shut but only you can open.
With AES from the symmetric lesson, Alice and Bob must already share one key. Here Bob just publishes his public key; Alice locks her message with it, and even Alice can't unlock it again. Only Bob's private key can.
Unlike Diffie–Hellman, Bob doesn't have to be online to take part in an exchange: his key is published once and works for anyone, any time. And 100 people need just 100 key pairs, not one shared key for every pair of people.