RSA
Multiplying two prime numbers is easy; finding them again is almost impossible

CC BY-SA 3.0 — Wikimedia Commons
In brief
In 1977, three MIT researchers, Ron Rivest, Adi Shamir and Leonard Adleman, invented RSA, named after their initials. Everyone has a public key, which anyone can know in order to write to them, and a private key, the only one that can read. Its security rests on how hard it is to break a very large number down into prime factors.
The story
Diffie and Hellman’s idea still lacked a way to encrypt messages directly. After months of attempts, Rivest found the solution one night in April 1977. You choose two large secret prime numbers and publish their product: with numbers hundreds of digits long, no computer can find the two factors in a reasonable time. RSA is also used to sign documents electronically.
In August 1977, the writer Martin Gardner presented RSA in “Scientific American” with a challenge: a message encrypted using a 129-digit number. It was only cracked in 1994, thanks to about 600 volunteers who set their computers working for months. It later emerged that the Briton Clifford Cocks had found an equivalent method in 1973, at GCHQ, without being allowed to publish it.
Example
61 × 53 = 3233 is worked out in an instant. But finding 61 and 53 from 3233 already takes some searching. With 600-digit numbers, it is out of reach.
Did you know?
Future quantum computers could break RSA. Specialists are already preparing so-called “post-quantum” methods to replace it.
Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.
Passwords
Diffie–Hellman key exchange
DES
Quantum cryptography
PGP
The web padlock (HTTPS)
AES
End-to-end encryption