Ralph Merkle and the Homework That Helped Change Cryptography
When a Berkeley professor turned down Ralph Merkle's computer security project in 1974, Merkle dropped the class and kept working on it. He wanted to show how two strangers could share a secret while somebody listened.
His puzzles made him a pioneer of public-key cryptography, and a later invention put his name on the Merkle tree. Thirty-one years after he left that class, he found the seven pages that started the argument in a box of old folders.
Ralph Merkle at a Glance
- Merkle graduated from Livermore High School in California in 1970 and studied computer science at the University of California, Berkeley.
- In 1974 he proposed a way for two people to agree on a secret while somebody listened. The idea became known as Merkle's puzzles.
- He joined Whitfield Diffie and Martin Hellman at Stanford in 1976 and earned a doctorate in electrical engineering there in 1979.
- Another invention, the Merkle tree, makes it possible to check whether a record belongs to a large collection without having to inspect the whole collection.
- His later work took him from computer design in Silicon Valley to research on molecular machines at Xerox PARC and teaching at Georgia Tech.
The Life of Ralph Merkle
The project he wouldn't put down
Merkle went to school in Livermore, California, and on to Berkeley. In the fall of 1974 he enrolled in a computer security class taught by Lance Hoffman.
Students had to submit two possible projects and complete one.
Merkle was interested in an awkward moment that comes before anybody gets to use a secret code. How do two people get a secret in the first place if the only way they have to talk is a line somebody else can hear?
Armies and governments could arrange to hand people secret keys in advance. Merkle wanted to know what two ordinary strangers could do if nobody had put them on that distribution list.
In his proposal, one person made a collection of puzzles and the other solved one of them. The people on the line could agree on a secret, while a listener faced a much larger job figuring out which puzzle the other person had chosen.
Hoffman rejected the proposal. Merkle dropped the course, but he kept thinking about the puzzles.
On his page about that autumn, he gives readers the unusually pleasant option of inspecting his rejected homework for themselves.
A second opinion, then a third
Another Berkeley professor, Bob Fabry, encouraged him to submit the idea to a journal. A reader with experience in cryptography should be able to tell what was interesting about it.
Merkle soon learned that a journal could be just as hard a room to win over as a classroom.
An early reader questioned the paper. Merkle revised it, trying to make particularly plain the fact that he hadn't secretly handed the two people a key beforehand.
That missing handoff was the whole point.
He could have left those false starts out of the story once the work became famous. Instead he put an early draft and the rejection on the web beside his homework.
One draft is dated December 7, 1975. A reader can see him trying to find the words his first reviewer needed.
He kept copies of the correspondence. Looking back, he noted how difficult it was to introduce his subject when there was no agreed name for it and no shelf of previous papers to which he could direct a puzzled reader.
- Follow the contest between codemakers and codebreakers from ancient Egypt to quantum cryptography.
- Understand how Enigma was broken, told as a story and not a math lecture.
- Come away able to explain public-key encryption to anyone.
Meanwhile at Stanford, Whitfield Diffie and Martin Hellman were asking related questions. In 1976 Merkle spent the summer with them.
By the fall Hellman was supervising his doctoral work.
Diffie and Hellman's paper that year brought the idea of public keys to a wider audience and credited Merkle's independent research. His own puzzle paper appeared in Communications of the ACM in 1978.
It had taken longer to publish the idea than to think of it.
A doctoral thesis with more than one idea
Merkle earned a master's degree at Berkeley in 1977 and his doctorate at Stanford in 1979. His education and work record lists the subject of the Stanford thesis as secrecy, authentication and public-key systems.
One question he tackled was how to prove a particular record belonged in a much larger set. Sending the person who wanted to check it every record you had was possible, but it rather took the shine off the idea.
The Tree That Carries His Name
Merkle organized the records like the leaves on a tree. A calculation gave each leaf a short fingerprint, and fingerprints were paired up until a single one at the top stood for the whole set.
That let someone check a record by following its branch of the tree. Change an earlier entry and the result at the top changes too.
A person who already knows what the top should look like has a way to spot the difference.
His puzzles had divided the work between the people keeping a secret and the person trying to discover it. Here again Merkle had taken a problem that sounded expensive and asked who really needed to do all that work.
Decades later his name appears in the records used to check certificates for websites. The people behind Certificate Transparency have an illustrated account of the logs.
Merkle supplied the tree. Other engineers found this particular forest for it to grow in.
From Silicon Valley to the scale of a molecule
Merkle joined a small Silicon Valley computer company called Elxsi in 1980. For eight years he led the team that built its compilers, the programs that turn a programmer's instructions into something a machine can run.
He moved to Xerox PARC in 1988. There his interests widened to include nanotechnology and the possibility of designing machines on the scale of molecules.
He later worked at Zyvex and taught at Georgia Tech.
His Berkeley alumni profile follows those later turns in his career. A reader looking for the young man in all those job titles can still find him in the note about his old homework.
On September 8, 2005, he opened a folder labeled for that Berkeley course. He scanned the original seven pages and put them online.
- Back up a laptop in minutes, with read speeds up to 1,000MB/s.
- Toss it in a bag without worry: no moving parts and drop protection up to two meters.
- Carry a second copy of your files wherever you go.
The student who'd once had trouble finding one reader for his idea had finally found a way to give everybody a look.
Whitfield Diffie: The Road Trip That Led to Public-Key Crypto

Martin Hellman: From Sharing Secrets to Preventing Nuclear War

Ronald Rivest, the R in RSA and the Man Behind a $100 Puzzle

QUOTE:
"Amateurs hack systems, professionals hack people."

