CS PAPERS DEEP-READ · PAPER 40

RSA Public-Key Cryptosystem

Rivest, Shamir, Adleman · MIT · CACM 1978

中文 →

What did this paper do?

That little padlock in your browser bar, every online payment, every message no one else can read — almost all of it stands on RSA. In 1977 three people at MIT (Rivest, Shamir, Adleman) built the first genuinely usable "public lock, private key" encryption scheme: the lock you can hand out to everyone, the key only you hold. Today's global HTTPS, digital signatures, and secure payments all trace back to this one paper.

The pain of the old world

Before it, encryption was like an ordinary lock: the same key both locks and unlocks the door. That created a deadlock — to send a stranger a secret message, you first had to get that key safely into their hands; but if you already had a secure channel to pass the key, why encrypt at all? "To communicate securely, first communicate securely" — a chicken-and-egg trap. Billions of stranger-pairs worldwide would each have to secretly swap a key in advance. It simply couldn't scale.

The idea

RSA splits the key in two: a public lock and a private key — and crucially, what the lock closes, only the key can open; the lock can't reopen it. You scatter your public lock like a business card; anyone wanting to send you a secret snaps their message shut with your lock — but once locked, even they can't reopen it. Only you, holding the private key, can. Two total strangers can now communicate securely without ever swapping a secret in advance. The deadlock is broken.

What makes it hold?

The secret hides in an arithmetic fact a schoolchild understands yet the fastest supercomputer chokes on: multiply two very large prime numbers together and you're done in an instant; but hand someone that product and ask which two primes made it, and essentially no one can compute the answer. Like stirring two paints into a new color in a second — then trying to separate them again.

Your "public lock" is essentially that giant product; your "private key" is the pair of primes only you know. Others can use the product to scramble a message (lock it), but without that pair of primes they can't untangle it back (unlock it). Bigger numbers mean more safety — today's numbers are so large that all the world's computers running to the end of the universe couldn't crack them.

Run it backward: signatures

The lock-and-key can also be played in reverse: you "stamp" a document with your private key, and anyone can check it with the public lock you handed out — confirming "this really is from you, and not a word was changed" — because only you hold the private key. This is a digital signature: online contracts, software updates, and certificates all rely on it to prove "I am who I say I am."

Remember one thing

Split the key into a "public lock + private key" — the lock goes to everyone, only you can open it — resting on "multiplying two big primes is easy, factoring the product back is nearly impossible." Strangers communicate securely with no secret swapped in advance, and run backward it also signs. The cost: it's slow (used only to lock one small key), and a future quantum computer could break it.

Want the public/private data-flow diagram, the real formulas, and how the "trapdoor" works? → switch to the deep read