Public-key cryptography: history
From the secret insights of Britain’s GCHQ to Diffie and Hellman’s paper, from RSA to elliptic curves and certificate infrastructures.
James Ellis, at Britain’s GCHQ, conceives “non-secret encryption”, without finding a practical method.
Clifford Cocks, also at GCHQ, finds a system equivalent to what would be called RSA.
Malcolm Williamson, Cocks’s colleague, discovers a key exchange method equivalent to Diffie-Hellman.
Whitfield Diffie and Martin Hellman publish “New Directions in Cryptography”, inspired in part by Ralph Merkle’s ideas.
Rivest, Shamir and Adleman invent RSA.
Neal Koblitz and Victor Miller independently propose elliptic-curve cryptography.
Certificate infrastructures make secure e-commerce possible.
The British government discloses the work of Ellis, Cocks and Williamson, kept secret for over twenty years.
Two discoveries, two fates
The same ideas were born twice: in secret, inside an intelligence agency, and in public, in universities. The former stayed locked in a drawer; the latter changed the world. It is one of the strongest arguments for open research in cryptography.
Public-key cryptography: the maths
Trapdoor one-way functions: multiplication and factoring, modular exponentiation and the discrete logarithm.
The pages of this topic
Back to the overviewPublic-key cryptography: how it works
The open padlock as a metaphor, encryption with the public key, signing with the private key and hybrid cryptography.
Public-key cryptography: worked example
A digital signature with small numbers, using the example RSA keys, to see how private and public keys work together.
Public-key cryptography: weaknesses and attacks
The man-in-the-middle attack, weak keys, side channels and the quantum threat: where public-key cryptography can fail.
Public-key cryptography today
Where public-key cryptography is used every day: HTTPS, digital signatures, messaging, passkeys, cryptocurrencies, software updates.
Public-key cryptography: try it yourself
Exercises on modular exponentiation, one-wayness and verifying a signature, with solutions.
Public-key cryptography: frequently asked questions
Short answers to the most common doubts about public-key cryptography.