दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Cryptography, blockchain and crypto

Crypto: How the Code Rebels Beat the Government

Steven Levy · 2001 · Viking

More by Steven Levy on this shelf · 2 books →

How public-key cryptography escaped government control.

About the book

Steven Levy, a technology journalist, published Crypto in 2001. The full subtitle continues: Saving Privacy in the Digital Age. It is a narrative history of how strong cryptography moved from government control into public use between the 1970s and 2000. Levy follows Whitfield Diffie and Martin Hellman's invention of public-key exchange, Ralph Merkle's related work, the creation of RSA at MIT, the conflict with the National Security Agency, Phil Zimmermann's release of PGP and the investigation that followed, the Clipper chip proposal, the cypherpunks, and the fight over export controls. He also tells how GCHQ researchers had found public-key methods first but kept them secret.

Key ideas

  • For decades, serious cryptography was a government monopoly. The NSA tried to control academic research, publication and export, treating strong encryption much like a weapon.
  • Diffie and Hellman showed in 1976 that two parties could agree on a secret key over a public channel. This solved the problem of distributing keys among strangers.
  • Rivest, Shamir and Adleman created RSA in 1977, giving a practical way both to encrypt and to sign digitally, and later formed a company to sell it.
  • Phil Zimmermann released PGP in 1991, putting strong encryption in ordinary users' hands. The government investigated him for possible export violations but dropped the case.
  • The Clipper chip proposed encryption with keys held in escrow for government access. Researchers found flaws in it, and public opposition led to its failure.
  • Export controls were relaxed in 2000 after years of legal, commercial and political pressure. Levy presents this as a victory for both privacy and commerce over secrecy.

Why it is on this shelf

Bitcoin came out of the cypherpunk movement this book describes, and the fight over who controls encryption is still going on. Levy shows how a few researchers and activists changed state policy. It is history told through people, and it reads quickly.

How to start reading it

Read the opening chapters on Diffie and Hellman, then the chapters on RSA and the NSA. Read the later chapters on PGP, the cypherpunks and Clipper together, since they tell one continuous political story.

About this book

Crypto is a work of narrative history. Steven Levy, a technology journalist, published it in 2001 with Viking. Its full subtitle adds the words Saving Privacy in the Digital Age. The book tells how strong cryptography, which for most of the twentieth century had been the private property of governments and their intelligence agencies, became something any person with a computer could use. The period it covers runs roughly from the early 1970s to the start of 2000, when the United States government loosened the export rules that had kept strong encryption out of most commercial software.

The book appeared at a particular moment. The fight it describes had just ended in what looked like a clear result. The World Wide Web had grown into a place of commerce. Every web browser shipped with encryption for credit card numbers. The government had given up its plan to hold copies of everyone's keys. The people Levy writes about had won, and he was writing their story while the participants were alive, reachable and willing to talk. He could interview the inventors, the activists and, to a degree, the officials on the other side.

The book was also published only months before the attacks of September 2001 in the United States. That timing matters for a reader today. Levy's ending is an ending written in the confident years of the late 1990s, before the security state expanded again. A reader now knows that the argument did not close. It moved to new ground: mobile phones, messaging apps, cloud storage, and the long public debate after the Snowden disclosures of 2013. Reading Crypto with that knowledge makes it more interesting, not less.

Levy wrote for a general reader. He does not assume mathematics. He explains the ideas through the people who had them, with enough technical detail to show what was at stake and why it was hard. The book's central question is simple to state. How did a small group of academics, hobbyists, entrepreneurs and activists take a technology that the most powerful intelligence service in the world wanted to control, and put it into the hands of the public? A second question runs under the first. What does a society gain and lose when ordinary people can keep secrets that their government cannot read?

This study edition is a companion to Levy's book. It explains what the book covers, the ideas that a reader needs to follow it, the arguments it makes, and the arguments it leaves open. It does not retell the book. The book is a story, and a story is best read in its own words. Use these pages before, during and after your reading, as a teacher would use notes beside a text.

The author

Steven Levy is an American journalist who has written about computers and the people who build them since the early 1980s. His first book, Hackers: Heroes of the Computer Revolution, came out in 1984. It told the story of the programmers at MIT, the hobbyists of the Homebrew Computer Club, and the early game makers, and it set out what Levy called the hacker ethic: that information should be free, that access to computers should be unlimited, and that people should be judged by what they make. Much of Crypto can be read as a sequel to Hackers. The cypherpunks of the 1990s were heirs to the hackers of the 1960s and 1970s, and Levy brings the same sympathy to them.

Levy went on to write other books on technology. Insanely Great, published in 1994, followed the making of the Apple Macintosh. Artificial Life, from 1992, described researchers who tried to build life-like systems in software. After Crypto he wrote The Perfect Thing about the iPod, In the Plex about Google, and Facebook: The Inside Story. Over a long career he wrote for Newsweek, where he was a senior editor and technology columnist, and for Wired, where he became a senior writer and later editor at large. He also wrote about cryptography for Wired in the early 1990s, including pieces on the cypherpunks and on the Clipper chip. Some of the reporting in the book began as magazine work.

Three features of Levy's method shape this book. The first is that he works through interviews. He spends time with his subjects and lets them tell their own stories. This gives the book its warmth and its pace. It also means the book often shows events from the viewpoint of the people who won. The second is that he likes outsiders. His heroes in Hackers were students and amateurs who worked around institutions. His heroes in Crypto are a wandering mathematician, a junior professor, a graduate student whose project was rejected, a software developer in Colorado and a loose group of activists on a mailing list. The third is that Levy is a clear explainer. He has a gift for making a technical idea concrete with a short example. Those three features are strengths. They are also the places to watch for bias, and later chapters of this edition return to them.

The shape of the argument

Crypto is organised as a chronological story, but it is helpful to see its larger movements. It is less a single line than three overlapping arcs, each with its own cast and its own kind of conflict.

The first arc: invention

The opening movement is about ideas. It follows a few people who, working mostly outside government, found a new way to think about secret communication. The problem they faced was old. For two parties to communicate in secret, they had always needed a shared secret key, and the key had to be carried from one to the other by some safe route. That works for armies and embassies, which have couriers. It does not work for millions of strangers on a computer network. The inventors in this arc found a way to make the key distribution problem go away. Levy tells this part as a story of intellectual discovery: solitary thinking, false starts, rejected papers, sudden insight and late-night work.

The second arc: commerce and the state

The middle movement is about what happened when these ideas met two powerful forces. One was the National Security Agency, the American signals intelligence agency, which had for decades treated serious cryptography as its own field and saw public research as a threat. The other was the market. Inventors patented their work and founded companies. Software firms wanted to sell encryption in products used around the world. In this part of the book the conflict takes the form of patents, licensing disputes, export rules, standards committees, and the slow negotiation between agencies and industry. It is less romantic than the first arc, and in some ways more important, because it decided what software people actually got.

The third arc: politics and the public

The final movement is about public politics. A programmer released strong encryption for free to anyone who wanted it. A group of activists turned privacy into a cause and wrote code as a form of protest. The government proposed a compromise in which it would hold spare copies of keys, and the proposal failed in public. Courts heard arguments that computer code was a form of speech. Industry joined activists in lobbying for change. The arc ends with the relaxation of export controls. Levy then closes with a twist that changes how the reader sees the whole story: the revelation that British government cryptographers had found the central ideas years earlier and been required to keep them secret.

How the arcs connect

The argument that runs through all three arcs is that cryptography moved from being a tool of the state to being a tool of the citizen, and that this happened because the ideas, once public, could not be recalled. Levy shows that each attempt at control produced a counter-move. When the government tried to restrict publication, academics published anyway. When it restricted exports, programmers found ways to move code as printed text. When it proposed key escrow, researchers found flaws and the public objected. Behind the narrative is a claim about technology and power: that mathematics, once known, behaves differently from physical weapons, because it can be copied for nothing and carried in a person's head.

Read the book with that claim in mind, and watch for where Levy tests it and where he simply assumes it. The later chapters of this edition do both.

Key idea one: the key distribution problem

To understand why the inventors in Levy's first arc mattered, a reader needs to feel the problem they solved. Classical cryptography is symmetric. The same key locks and unlocks. If Asha wants to send Babu a secret message, both must hold the same key, and nobody else may hold it. Before they can talk in secret, they must already have met in secret, or trusted a messenger.

For a small number of people this is manageable. For a large network it is not. If a thousand people each want to talk privately to every other, each pair needs its own key. That is nearly half a million keys, each of which must be generated, delivered safely, stored, and replaced if lost. Governments managed this with couriers, sealed pouches, and key lists printed on paper. Banks managed it with armoured trucks and trusted staff. For an open computer network in which strangers meet for the first time, there was no courier.

A useful analogy is a locked box. With symmetric cryptography, the only way to send a locked box is to give the recipient a copy of the key first. The question the inventors asked was whether it is possible to send a box that only the recipient can open, without ever sending them a key. Put that way, it sounds impossible. The surprise of the 1970s was that it is not.

Two related ideas came out of this. The first is key agreement. Two people exchange messages in public, and at the end each holds a shared secret number that an eavesdropper who saw every message still cannot compute. The second is public-key encryption. Each person has two keys. One, the public key, can be published like a phone number. Anyone can use it to lock a message. Only the matching private key, which never leaves its owner, can unlock it. A rough physical picture is a padlock that anyone can snap shut but only the owner can open. You can hand out open padlocks to the world and keep the only key.

Readers often confuse these two ideas, and Levy's story makes the difference clear if one pays attention. Key agreement lets two parties build a shared symmetric key. Public-key encryption lets one party send a message to another who has published a key. Both remove the need for a courier. In practice the two are combined. Public-key methods, which are slow, are used to set up a fast symmetric key, and the symmetric key does the bulk of the work. Almost every secure connection on the internet today works this way.

Why this mattered politically is the deeper point of the book. Key distribution had been a natural brake on secret communication. Only organisations with resources could run a key system. Once key distribution could be done in software, between strangers, at no cost, the brake was gone. Any two people could talk privately. That is what made governments nervous, and that is why the rest of the book contains a fight.

Key idea two: one-way functions and trapdoors

Behind public-key cryptography sits a mathematical idea that Levy explains with care. A one-way function is easy to compute in one direction and very hard to reverse. Multiplying two large prime numbers together is fast. A laptop does it in a moment. Starting from the product and finding the two primes is, as far as anyone knows, extremely slow for large enough numbers. That asymmetry is the raw material of the whole field.

A trapdoor one-way function adds a twist. It is hard to reverse for everyone except a person who holds a special piece of information, the trapdoor. For the RSA system, the trapdoor is knowledge of the two primes. The public key includes their product. The private key depends on the primes themselves. Anyone can lock a message using the product. Only the person who knows the factors can unlock it.

The Diffie-Hellman key agreement uses a related one-way function. Raising a number to a power in modular arithmetic, where numbers wrap around after reaching a fixed modulus like hours on a clock, is fast. Going backwards, from the result to the exponent, is called the discrete logarithm problem, and for well-chosen large numbers it is believed to be very hard. Each party picks a secret exponent, publishes the result of raising a shared base to that power, and then raises the other party's published value to its own secret exponent. Both arrive at the same number. The eavesdropper sees only the published values and would need to solve a discrete logarithm to catch up.

A kitchen analogy, often used by teachers, gives the flavour. Mixing two paints is easy. Separating a mixture back into its parts is hard. If both parties start with a shared public colour, each adds a private colour, and they swap the results, then each can add their private colour again to reach the same final mixture. An observer who saw both swapped mixtures cannot easily unmix them to find the private colours. The analogy is imperfect, as all such analogies are, but it captures the idea that some operations are much easier one way than the other.

Two cautions are worth keeping. First, no one has proved that these functions are truly one-way. Their hardness is an assumption backed by decades of failed attempts to break them. A breakthrough in mathematics, or a large working quantum computer, would undermine factoring and discrete logarithms. That is why researchers now work on post-quantum schemes based on other problems. Second, a hard mathematical problem is not the same as a secure system. Levy's story is mostly about inventions and politics, but the gap between a sound idea and a safe product is the subject of other books on this shelf, especially Cryptography Engineering.

Key idea three: the inventors outside the walls

One of the book's main ideas is about where ideas come from. Levy argues, through his stories, that the breakthrough in cryptography came from people outside the secret world, and that their position outside was part of the reason they succeeded.

His central figure is Whitfield Diffie. Levy presents him as a restless, independent thinker who had worked in computing and became preoccupied with privacy. He travelled across the United States reading what he could find about cryptography, much of which was hidden or scattered, and asking people questions. He eventually joined Martin Hellman, a young professor of electrical engineering at Stanford, who was also interested in the field despite colleagues' warnings that the NSA had already done everything worth doing and that open work was pointless. Their 1976 paper, New Directions in Cryptography, published in an engineering journal, introduced public-key cryptography and described the key agreement method that now carries their names.

Alongside them Levy places Ralph Merkle, who as a student at Berkeley proposed a scheme for two parties to agree on a secret over a public channel. His instructor did not see its value, and a journal was slow to accept his paper. Merkle's scheme, often called Merkle's puzzles, was not practical in its first form, but it contained the essential insight: you can make the eavesdropper's work much larger than the honest parties' work. Levy uses Merkle's story to show how new ideas often look wrong to experts because they break an assumption the experts did not know they held.

The third set of inventors are Ron Rivest, Adi Shamir and Leonard Adleman at MIT. After reading the Diffie-Hellman paper, which described public-key encryption as a concept but did not offer a full practical system for it, they set out to find a trapdoor function. Levy describes their process: Rivest and Shamir proposing schemes, Adleman breaking them, many rounds of failure, and finally a scheme based on factoring that held up. It was announced to the public through Martin Gardner's mathematical games column in Scientific American in 1977, together with a challenge to break an encrypted message.

The lesson Levy draws is that intellectual freedom produced these results. The academics could publish, argue, make mistakes in public and build on one another. The secret world could not do that as easily. It is a strong argument and mostly right. The final arc of the book complicates it, because it turns out that people inside a secret agency had found the same ideas. Freedom, then, did not create the ideas. It made them public and usable. That is a more precise claim, and the reader should hold onto it.

Key idea four: the state's case for control

A good reading of Crypto takes the government's side seriously, even where Levy does not linger on it. The NSA's position was not mere obstruction. It rested on a real job and a real fear.

Signals intelligence, the interception and reading of foreign communications, had been one of the most valuable sources of information in the Second World War and the Cold War. Breaking enemy ciphers had shortened wars and saved lives. An agency whose mission was reading foreign traffic had reason to worry when strong encryption became cheap and public. If every foreign government, company and criminal could use unbreakable encryption by downloading a program, the agency's work would grow much harder. Its officials also argued that they knew things about cryptography the public did not, and that open research could teach adversaries how to protect themselves.

The tools of control Levy describes were several. The first was secrecy about the agency's own knowledge. The second was pressure on publication: a warning letter about export law sent to organisers of an academic conference, attempts to have research grants reviewed, and a proposed system in which researchers would voluntarily submit papers for review before publishing. The third was influence over standards, most visibly in the Data Encryption Standard, adopted in the 1970s. The NSA took part in its design, and critics including Diffie and Hellman argued that its 56-bit key was too short and might have been chosen to keep it within the agency's reach. The fourth, and the most lasting, was export control. Encryption software was classified with munitions, so selling it abroad required a licence, and strong products were refused.

Levy shows how these tools worked and why they slowly failed. The deeper idea is the dual-use character of cryptography. The same algorithm protects a dissident and a criminal, a bank and a spy. There is no version of strong encryption that only good people can use. Every policy proposal in the book is an attempt to get around this fact, and each fails because the fact does not move. Readers should notice that the same dilemma appears today in debates about end-to-end encrypted messaging and lawful access. The arguments on both sides have changed little since the years Levy describes.

What this idea is often confused with is the claim that the state had no legitimate interest. That is not the right lesson. The right lesson is that the state's interest, however real, could not be met by restricting mathematics once the mathematics was public, and that attempts to do so harmed domestic industry and ordinary security more than they protected intelligence work.

Key idea five: patents, companies and the market

A part of the story that general readers sometimes skip, but that shaped real-world outcomes, is the commercial one. Public-key cryptography was patented in the United States. The Diffie-Hellman method and the RSA method were both covered by patents held through their universities, and licences were managed by companies. RSA Data Security, the company built around the RSA patent, became a central player. Its leader in the period Levy covers, Jim Bidzos, is one of the book's sharpest characters: a salesman who fought the government over export rules and fought other developers over licences.

This created a three-sided conflict. The government wanted to limit strong encryption. The patent holders wanted encryption to spread, but under licence and for a fee. Activists and free software developers wanted encryption to spread without either restriction. The result was messy alliances. A company could be on the activists' side against the NSA one day and in a legal dispute with an activist the next.

Levy also shows the bargaining that took place between industry and the state over export. Software companies wanted to sell one version of their product worldwide. The government would grant export licences only for weak encryption, for a long time limited to keys of 40 bits for many products. Some firms accepted the deal. Others shipped two versions, a strong one at home and a weak one abroad. Researchers then demonstrated how quickly 40-bit keys could be broken with ordinary computing power, which made the export limits look less like security policy and more like a deliberate weakness.

Why does this commercial history matter for a modern reader? Because it shows that the spread of cryptography was not only a story of free ideas winning. It was also a story of markets. The arrival of the web browser and online shopping gave large companies a direct reason to want strong encryption. When the money needed it, the policy moved. A reader interested in economics can see here a case study in how commercial pressure, more than principle alone, changes regulation. Patents also expired: the RSA patent ran out in 2000, the same year export rules were relaxed, and after that the field became far more open.

Key idea six: crypto for the people

The book's most dramatic character is Phil Zimmermann, a software engineer and peace activist in Colorado. In 1991 he released a program called Pretty Good Privacy, known as PGP, which let ordinary users encrypt email and files with public-key methods. He gave it away. Copies spread across the internet, including outside the United States.

Two kinds of trouble followed. The first was legal. Because strong encryption could not legally be exported without a licence, federal authorities opened a criminal investigation into whether Zimmermann had violated export law when the program appeared abroad. The investigation lasted about three years before it was dropped in early 1996 without charges. Zimmermann became a public symbol of the cause. The second was commercial. PGP used the RSA algorithm, which was patented, and RSA Data Security objected to its use without a licence. The patent dispute was later resolved through a licensed version and a reference implementation released by MIT.

Levy also tells of a clever response to export law. Because the First Amendment protects printed books, the source code of PGP was printed as a book and the book was exported. Readers abroad scanned the pages and turned them back into software. The episode showed the absurdity of treating code as a munition while treating books as speech, when the code was the book.

The idea Levy draws out is that cryptography changed in kind when it became a consumer product. When it was in the hands of governments and banks, the question was who controlled it inside those institutions. When it could be downloaded by anyone, the question became whether the state could control it at all. Zimmermann's argument, which Levy presents sympathetically, was that privacy is a right, that encryption is the modern form of the sealed envelope, and that if privacy is outlawed only outlaws will have privacy. Whatever one thinks of the politics, the technical point holds: once a working program is in circulation, it cannot be recalled.

PGP also introduced a way of trusting keys that did not depend on a central authority. Users vouched for each other's keys, building what Zimmermann called a web of trust. This decentralised idea was influential, even though in practice it proved difficult for ordinary people to use well. Later on the shelf, the same tension between decentralisation and usability appears again in blockchain systems.

Key idea seven: the cypherpunks

In the early 1990s a group of programmers, cryptographers and libertarian thinkers in California began meeting and corresponding about the social effects of cryptography. They called themselves cypherpunks, a play on cyberpunk fiction. Among the founders were Eric Hughes, Timothy May and John Gilmore. Their mailing list grew into one of the busiest discussion forums of its time, covering mathematics, code, politics and speculation about the future.

Levy treats the cypherpunks as the political wing of the story. Their slogan, often repeated, was that cypherpunks write code. The idea was that one should not wait for laws to protect privacy. One should build tools that make privacy a fact. If anonymous remailers, encrypted email and digital cash existed and worked, the political argument would be partly settled by the technology itself. This is a distinct theory of social change. It says that code can do what campaigns cannot.

The group's ideas ranged widely. Some members, Timothy May in particular, imagined a future of crypto anarchy, in which encryption and anonymous payment would weaken the state's ability to tax and regulate. Others were more modest and simply wanted privacy for ordinary people. Levy's portrait captures the energy and the variety. A reader should notice that the group included serious engineers who built working tools and also people whose predictions were bolder than the evidence.

For this shelf the cypherpunks matter for a specific reason. The ideas they discussed, especially digital cash that did not require a trusted bank, fed directly into later work. David Chaum's earlier research on anonymous digital payments was well known in these circles. Proposals by other figures connected to the movement explored money built on cryptographic proofs of work. The Bitcoin white paper of 2008 was first posted to a cryptography mailing list descended from this culture, and its early supporters included people who had been part of it. Levy's book was finished long before Bitcoin, so it does not tell that story, but it describes the soil in which it grew.

A common confusion is to treat cypherpunk thought as a single doctrine. It was not. It was an argument among people who agreed that strong cryptography should be available to all, and disagreed about almost everything else. Reading Levy alongside This Machine Kills Secrets and Digital Gold from the same bay shows how the ideas spread and changed.

Key idea eight: key escrow and the Clipper chip

The episode that turned the debate into national news was the Clipper chip. In 1993 the United States government proposed a standard encryption chip for telephones and other devices. The chip used a classified algorithm, Skipjack, designed by the NSA. Each chip's key would be split and held in escrow by two government agencies. With legal authority, law enforcement could obtain the key parts and decrypt communications.

The proposal tried to resolve the dilemma described earlier. It offered strong encryption to the public while preserving government access. Officials argued that it was a reasonable compromise. Critics objected on several grounds. They doubted that a secret algorithm deserved trust. They feared that escrowed keys would be stolen or misused. They pointed out that criminals would simply use other encryption, so the scheme would catch only the careless. And they argued that the principle of building access into every device was wrong in itself.

The technical blow came from Matt Blaze, a researcher at AT and T Bell Laboratories, who in 1994 found a weakness in the mechanism that carried the access field. He showed that a user could defeat the escrow while still using the chip's encryption. The flaw did not make Skipjack weak, but it undermined the purpose of the system. Public opposition and industry disinterest did the rest. Later versions of the idea, with keys held by private agents instead of government offices, also failed to gain support.

The lasting idea here is that exceptional access is itself a vulnerability. Any mechanism that lets one party bypass encryption can, in principle, be used by others. It adds complexity, and complexity creates bugs. It requires keeping a valuable store of keys safe forever. Security researchers have restated this argument in every later round of the debate, including formal reports in 1997 and 2015 by groups of cryptographers. A reader who understands the Clipper story understands the core of the present-day argument about backdoors in messaging apps.

It is worth separating two things the Clipper episode sometimes gets blended with. One is the general idea of key recovery, which organisations reasonably use internally so that data is not lost when an employee forgets a password. The other is government exceptional access to everyone's communications. The first is ordinary key management inside a single trust domain. The second spans society and involves a different balance of risks. Levy's story is about the second.

Key idea nine: code as speech

Toward the end of the period Levy covers, the fight moved into the courts. The central legal question was whether computer source code is speech protected by the First Amendment of the United States Constitution. If it is, then export rules that forbade publishing encryption code abroad, including on the internet, would face strict scrutiny.

The best known case was brought by Daniel Bernstein, then a graduate student at Berkeley, who wanted to publish an encryption program and a paper describing it. Supported by the Electronic Frontier Foundation, he challenged the export rules. A federal court found in his favour, and an appeals court upheld that ruling in 1999 before the government changed its regulations. Other cases raised similar questions. The legal outcomes were mixed and complex, but they added to the pressure on the government.

The idea behind these cases is subtle and important. Source code is written by people for other people to read. It is a precise description of a method, much like a mathematical proof or a recipe. It is also a set of instructions that a machine can run. Courts and scholars have argued over which of these aspects should govern its legal treatment. For encryption the argument mattered because a paper that described an algorithm in English was clearly protected, while the same algorithm written in a programming language was treated as a weapon. That distinction was hard to defend.

Readers should not over-learn the lesson. The code-as-speech argument did not settle every question about software regulation, and later courts have treated code in different contexts in different ways. What Levy's story shows is that the legal frame used for physical munitions did not fit an artefact made of information, and that the mismatch helped end the export regime.

Key idea ten: the secret history

Levy ends with a revelation that changes the meaning of the book. In 1997 the British signals intelligence agency, GCHQ, made public that its own researchers had found the core ideas of public-key cryptography in the early 1970s, several years before the American academics.

The story centres on three people. James Ellis, working on the problem of key distribution, reasoned around 1970 that encryption without a shared secret should be possible in principle, and called it non-secret encryption. Clifford Cocks, a young mathematician who had recently joined, heard of the problem in 1973 and quickly found a method that is essentially the same as RSA. Malcolm Williamson then found a method closely related to Diffie-Hellman key agreement. None of this could be published. The work was classified, and the inventors watched others receive public credit. Ellis died in late 1997, shortly before the public announcement of his role.

Levy uses this to make a point about secrecy itself. The secret world had the ideas first but did little with them. Without open publication, review, argument and commercial use, the inventions stayed on paper. In the open world the same ideas became the foundation of internet commerce within two decades. The deeper argument is that knowledge grows faster in public. This supports Levy's main theme, but it also adds humility: the American inventors were not uniquely brilliant, and the ideas were available to anyone thinking clearly about the problem.

It also raises a quieter question that Levy leaves for the reader. If secret agencies found public-key cryptography years early, what else might they know? The Data Encryption Standard offers one answer. When researchers outside government discovered differential cryptanalysis around 1990, it emerged that the designers of DES had known of the technique in the 1970s and strengthened the cipher against it. The secret world has sometimes been ahead. Whether it is ahead now, and on what, is unknowable from outside, and that uncertainty is itself a reason why open research and public review matter.

Key idea eleven: signatures and the proof of who you are

Most popular accounts of the period, including parts of Levy's, put secrecy at the centre. Yet one of the most important consequences of public-key cryptography is not secrecy at all. It is authentication: the ability to prove that a message came from a particular person and was not changed on the way. Diffie and Hellman saw this in their 1976 paper, and the RSA method made it practical.

The idea runs the padlock picture in reverse. With encryption, anyone can lock and only the owner can unlock. With a signature, only the owner can produce a mark, and anyone can check it. The owner uses the private key to compute a value from the message. Anyone holding the public key can confirm that the value matches the message and could only have been made with the private key. If a single character of the message changes, the check fails.

A handwritten signature is a weak analogy. It looks the same on every document, so it can be copied from one page to another. A digital signature is different for each message, because it is computed from the message itself. Copying it onto a different document does not work. That property is what makes it useful for contracts, software updates and money.

Why does this matter for a reader of this shelf? Because signatures, more than encryption, are the foundation of cryptocurrency. A Bitcoin transaction is not encrypted. Anyone can read it. What makes it valid is a signature showing that the holder of a particular private key authorised the transfer. Ownership becomes knowledge of a key. That idea is a direct descendant of the inventions Levy describes, though it arrived years after his book.

Signatures also bring their own hard problem, which the early inventors understood but which took decades to work through in practice. A signature proves that a message was made with a certain key. It does not prove whose key that is. Linking a public key to a real person or organisation requires some further system of trust. The answers on offer include certificate authorities, which vouch for keys in the way a passport office vouches for identity; PGP's web of trust, in which friends vouch for each other; and, in cryptocurrency, the choice to make the key itself the identity and to accept that losing the key means losing the asset. Each answer has costs. Levy touches on these questions mainly through the PGP story, but a reader should hold them alongside the main narrative, because they turned out to be where many real systems succeed or fail.

There is a policy side as well. Governments that wanted to limit encryption were often willing to allow authentication, since signing does not hide content from investigators. Export rules in parts of this period distinguished between products used only for authentication and those used for confidentiality. The distinction shows that officials understood the difference, and it helps explain why some products could be exported with strong signatures but only weak encryption.

The tradition around it

What came before

Crypto belongs to a small tradition of books that made cryptography readable for the public. The most important predecessor is David Kahn's The Codebreakers, first published in 1967 and on the same bay. Kahn wrote the history of secret writing from antiquity to the Second World War and the early Cold War. His book was itself a minor event in the politics Levy describes: the NSA was unhappy that so much was being made public. Kahn ends roughly where Levy begins. Kahn's world is one of codebooks, rotor machines and military codebreakers. Levy's world is one of computers, mathematics and civilians. Reading the two together gives the full arc from the state's long monopoly to its loss.

Levy also builds on his own Hackers. The hacker culture he described in 1984 valued open information, distrust of central authority and the pleasure of building things. The cypherpunks carried those values into a political cause. One can trace a line from the MIT model railroad club through the early internet to the mailing lists of the 1990s.

In the technical literature, the paper by Diffie and Hellman and the paper on RSA are the true starting points. Claude Shannon's 1949 paper on the theory of secrecy systems, which set cryptography on a mathematical footing, stands further back. Levy mentions this lineage but does not ask the reader to follow it. A reader who wants the mathematics behind the story can find it in A Course in Number Theory and Cryptography by Neal Koblitz, who was himself one of the inventors of elliptic curve cryptography in the 1980s, or in Introduction to Modern Cryptography by Katz and Lindell.

Its neighbours on this bay

Simon Singh's The Code Book, published in 1999, covers some of the same ground in a lighter, more puzzle-centred style. Singh also tells the GCHQ story and the Diffie-Hellman story, and the overlap allows a reader to compare two journalists' handling of the same events. Levy goes deeper into the American politics; Singh ranges more widely across history.

Applied Cryptography by Bruce Schneier, first published in 1994, appears in Levy's era as an actor, not only a reference. It was the book that put the algorithms in the hands of programmers, and its source code appendix was itself a subject of export questions. Cryptography Engineering, by Ferguson, Schneier and Kohno, is the later and more mature view: after the algorithms became available, the hard problem became building systems that use them correctly.

For the political line that continues past Levy, Andy Greenberg's This Machine Kills Secrets follows the cypherpunk tradition into the era of anonymous leaking, WikiLeaks and Tor. The Sovereign Individual by James Dale Davidson and William Rees-Mogg, published in 1997, gives a bolder and more speculative version of the crypto anarchist forecast, predicting that digital money and encryption would weaken nation-states. Hayek's Denationalisation of Money, from 1976, supplies the economic argument for private, competing currencies that some cypherpunks and later Bitcoin advocates adopted.

The cryptocurrency books on the bay pick up where the cypherpunk story ends. Digital Gold by Nathaniel Popper describes the early Bitcoin community, several of whom came from the cypherpunk world. Mastering Bitcoin by Andreas Antonopoulos explains how public-key signatures, hash functions and a shared ledger combine into money. Bitcoin and Cryptocurrency Technologies by Narayanan and others gives the academic treatment. In each, the tools that Levy's characters fought to make public are the working parts. Without public-key signatures, there is no way to prove ownership of a coin without a bank.

What came after

After 2001 the debate Levy describes returned in new forms. Surveillance powers expanded after the September attacks. In 2013 documents leaked by Edward Snowden indicated large-scale collection of communications and efforts to weaken cryptographic standards; one widely discussed case concerned a random number generator standard, Dual EC DRBG, which many researchers had already suspected. The revelations led to a wave of encryption by default across the web and in messaging. Apple's dispute with the FBI in 2016 over unlocking an iPhone repeated the Clipper argument in a new setting. Governments in several countries, including the United Kingdom, Australia and India, have since passed or proposed laws about lawful access and traceability in encrypted services. Each episode shows that Levy's ending was a pause, not a conclusion.

Questions and criticisms

A story told by the winners

Levy's sources are mostly the inventors and activists. He interviewed government figures too, and he gives some of them a fair hearing, but the reader experiences the story from the side of the people who wanted cryptography free. The NSA's internal reasoning is mostly seen from outside, in part because much of it remained classified. A fair reader should ask what the story would look like if told by someone who had spent a career trying to protect a country by reading foreign signals. The book does not pretend to be that account, but a reader should notice the absence.

Heroes and drama

Narrative history depends on characters, and Levy draws his with affection. Diffie is the wandering visionary, Zimmermann the persecuted idealist, Bidzos the combative dealmaker. These portraits are vivid and mostly fair, but they simplify. Science is cumulative and collaborative, and the moment of discovery in a story often compresses months of work and many contributors. The GCHQ coda corrects some of this, showing that the ideas were not the property of any one person.

The meaning of victory

The book's subtitle claims that the code rebels beat the government. That was a defensible reading in 2000. It looks more complicated now. Strong encryption did become universal for web traffic and is now standard in many messaging apps. That is a real and lasting result. But surveillance did not end. It shifted. Governments and companies gather vast amounts of data that is not encrypted end to end: location data, metadata about who talks to whom and when, cloud backups, and records held by service providers. Encryption protects the content of a message in transit. It does not protect against the device itself being compromised, or against the collection of everything around the message. A reader today should treat the victory as partial and ongoing.

Privacy and its costs

Levy's sympathies are clear, and the book gives less space to the costs of strong encryption. Law enforcement agencies have real difficulty investigating some crimes where evidence is encrypted. Ransomware, which encrypts victims' files and demands payment in cryptocurrency, is a direct and harmful use of the tools the book celebrates. These costs do not decide the policy question, since weakening encryption also has large costs. But an honest reader should weigh both sides, which the book only partly does.

What has held up

Several of Levy's main judgements have held well. The dual-use dilemma is still the centre of the debate. The argument that exceptional access creates vulnerabilities has been confirmed repeatedly, including by incidents in which lawful intercept systems were themselves misused. The claim that open research produces stronger and more widely used cryptography is now the consensus of the field. Standards processes after Levy's era, such as the open competition that selected the Advanced Encryption Standard in 2000 and later the open process for post-quantum algorithms, reflect that lesson.

What later work changed

Later history added layers that Levy could not include. The role of large technology companies grew. Encryption decisions are now made as much by a few firms as by governments, which raises its own questions about power. Cryptography also became the basis of a new financial system in cryptocurrencies, with consequences that the cypherpunks predicted in some ways and badly misjudged in others. And the threat from quantum computing, still unrealised but taken seriously, has opened a new chapter in which the mathematics itself must be replaced. A reader who finishes Crypto should treat it as the first part of a longer story.

Why it is on this shelf

This book sits on the cryptography bay because it supplies the history that the technical books assume. A textbook can teach how public-key encryption works. It cannot easily explain why a public-key system is something one can download today, when fifty years ago it was a secret. Crypto explains that.

For a reader of technology, the book shows how institutions, markets and individuals shaped a set of tools that now underlie every secure connection and every digital signature. For a reader of economics, it is a case study in regulation that tried to control an information good, and in how commercial pressure and expiring patents changed the outcome. For a reader of cryptocurrency, it is the prehistory of the field: the movement that produced the ideas, the people and some of the code from which Bitcoin grew.

For a reader of Vedanta and of the older traditions of knowledge also kept on these shelves, there is a quieter reason. Those traditions have long distinguished between knowledge that is guarded and passed only to the qualified, and knowledge that is open to all. They have also known that what is once truly understood cannot be taken back from the one who understands it. Crypto is a modern story about that same tension, set in mathematics and law. We keep it because it shows clearly how knowledge moves, who tries to hold it, and what happens when it escapes.

We also keep it because it reads well. It is narrative history, accessible on a first pass, with enough technical content to reward a careful second reading. It makes a good first book for this bay before the harder ones.

How to read it

A first pass

Read the book straight through on the first pass, at the pace of a novel. It is designed for that. Aim for two or three weeks with a few chapters at a sitting. Do not stop to master every technical point. Mark the places where the mathematics is explained, and return to them later.

A pencil pass on the ideas

On a second, slower pass through the early chapters, work through the key ideas with paper. Take two small primes, such as 11 and 13, multiply them, and convince yourself that going back from 143 to its factors would be slow if the numbers had hundreds of digits. Work a tiny Diffie-Hellman example with a modulus such as 23 and a base such as 5, with each party choosing a small secret exponent. Doing this once by hand makes the rest of the book clearer than any amount of reading. Do not worry about efficiency or real-world parameters; the goal is to feel the asymmetry.

A pass on the politics

Read the later parts of the book, on PGP, the cypherpunks, Clipper and export controls, together as a single political story. For each episode, write down three things: what the government wanted, what the opposing side wanted, and why the outcome went the way it did. You will find that the answers to the third question involve law, technology and money in different proportions. That exercise turns a story into an analysis.

Keep a timeline

The book moves between several threads that overlap in time, and it is easy to lose track of the order of events. Keep a single page as a timeline while you read. Put the decades of the 1970s, 1980s and 1990s across the top, and add each event as it appears: the 1976 paper, the RSA announcement in 1977, the adoption of DES, the release of PGP in 1991, the founding of the cypherpunks in 1992, the Clipper proposal in 1993, the end of the Zimmermann investigation in 1996, the GCHQ disclosure in 1997, and the relaxation of export rules in 2000. Then add, in a different colour, the wider events you already know: the spread of personal computers, the opening of the internet to commerce, the arrival of the web browser. You will see that the policy fight sped up exactly as the internet went public. That pattern is one of the book's quiet arguments, and a timeline makes it visible in a way that prose alone does not.

A timeline also helps with the second reading. When you return to a chapter, you will know what each character could and could not have known at the time, which makes their choices easier to judge fairly.

What to skip at first

On a first pass you may move quickly through the detailed accounts of licensing disputes and company manoeuvres. They matter, but they are easier to understand once you have the overall shape. Return to them when you want to see how the commercial forces worked.

What to read next

From this bay, read The Codebreakers by David Kahn for the long history before Levy begins, or The Code Book by Simon Singh for a shorter companion. For the mathematics, go to A Course in Number Theory and Cryptography by Neal Koblitz, then Introduction to Modern Cryptography by Katz and Lindell. For how real systems should be built, read Cryptography Engineering. For the political story after 2001, read This Machine Kills Secrets. For the line from the cypherpunks to Bitcoin, read Digital Gold and then Mastering Bitcoin.

Questions to carry

  • Why was the key distribution problem a natural brake on secret communication, and what happened when it was removed?
  • What exactly is the difference between key agreement and public-key encryption, and why are they used together in practice?
  • Is there any form of strong encryption that only good actors can use? If not, what follows for policy?
  • What did the NSA have to lose from public cryptographic research, and were its fears reasonable?
  • How much of the change Levy describes was driven by principle, and how much by commercial interest?
  • Did patents speed up or slow down the adoption of public-key cryptography?
  • What is gained and what is lost when a technology passes from institutions to individuals?
  • Can code achieve what political campaigns cannot, as the cypherpunks believed? Where has that worked, and where has it failed?
  • Why is a backdoor for one party a vulnerability for all? Can you construct a case where it might not be?
  • Should source code be treated as speech, as a tool, or as both? Does the answer change for different kinds of code?
  • What does the GCHQ story say about the value of open publication compared with secret research?
  • Encryption protects content in transit. What forms of surveillance does it leave untouched?
  • In what ways did the cypherpunks predict the world of cryptocurrency, and in what ways did they misjudge it?
  • If you were writing the next chapter of this story, which events after 2001 would you include?

Words to know

  • Cryptography: The study and practice of protecting information so that only intended parties can read it or confirm it has not been altered.
  • Cipher: A method for transforming readable text into unreadable form and back, using a key.
  • Plaintext and ciphertext: The readable message before encryption and the scrambled message after it.
  • Symmetric key: A system in which the same secret key is used both to encrypt and to decrypt.
  • Key distribution problem: The difficulty of getting shared secret keys safely to every pair of parties who need to communicate.
  • Public-key cryptography: A system in which each person has a public key that anyone can use and a private key kept secret; also called asymmetric cryptography.
  • Key agreement: A protocol by which two parties exchange public messages and end up with a shared secret that an eavesdropper cannot compute.
  • Diffie-Hellman: The key agreement method published by Whitfield Diffie and Martin Hellman in 1976, based on the difficulty of discrete logarithms.
  • RSA: The public-key system published by Rivest, Shamir and Adleman in 1977, based on the difficulty of factoring large numbers; used both for encryption and for signatures.
  • One-way function: A function that is easy to compute but believed to be very hard to reverse.
  • Trapdoor: Secret information that makes a one-way function easy to reverse for the person who holds it.
  • Digital signature: A value produced with a private key that anyone with the public key can check, proving who signed a message and that it was not changed.
  • NSA: The National Security Agency, the United States agency for signals intelligence and communications security.
  • GCHQ: Government Communications Headquarters, the British signals intelligence agency.
  • DES: The Data Encryption Standard, a symmetric cipher adopted by the United States government in the 1970s with a 56-bit key.
  • Export controls: Rules restricting the sale or transfer of certain goods abroad; in this period they treated strong encryption like military equipment.
  • PGP: Pretty Good Privacy, the email and file encryption program released by Phil Zimmermann in 1991.
  • Web of trust: PGP's decentralised method in which users vouch for each other's public keys instead of relying on a central authority.
  • Cypherpunks: A loose movement from the early 1990s that promoted strong cryptography and privacy tools as a means of social and political change.
  • Key escrow: An arrangement in which copies of encryption keys are held by a third party, such as a government agency, for later access.
  • Clipper chip: The 1993 United States proposal for an encryption chip with escrowed keys, abandoned after technical and public criticism.
  • Exceptional access: A built-in means for an authorised party, usually law enforcement, to bypass encryption.
  • Dual-use: Describes a technology that serves both civilian and military, or both protective and harmful, purposes.

A note on this edition

This is a study edition written for this shelf in our own words. It is a companion to Steven Levy's Crypto, not a substitute for it. It describes the book's subject and ideas, adds context from the wider history of cryptography, and offers questions and a plan for reading. It does not reproduce Levy's text, and it does not retell his narrative scene by scene.

The book itself is in copyright. It is a lively and well-reported history, and it is worth getting from a library or a bookshop and reading in full. Where this edition gives facts beyond what Levy reports, they are general and widely known; where we were unsure of a detail, we have left it out rather than guess.

Terms from this book with their own page: Public-key cryptography, Digital signature

More from “Cryptography, blockchain and crypto”

The whole section →