About this book
Applied Cryptography is a large reference book written for people who build things. Bruce Schneier published it with John Wiley and Sons in 1994, and a much expanded second edition followed in 1996. The second edition runs to more than seven hundred pages. It covers cryptographic protocols, the techniques for using them, a wide survey of the algorithms available at the time, and the practical and political world in which cryptography was used. The first edition printed source code for many algorithms in the language C, a feature that became famous for reasons that had little to do with programming.
Before this book, serious cryptography lived in two places. One was the world of military and intelligence agencies, where it was secret. The other was the academic world of mathematicians and theoretical computer scientists, where it was published in conference papers that few working programmers read and fewer could use. Between them lay a gap. A software engineer who wanted to protect files, build a secure network protocol or sign a document had no single place to learn what was known, which algorithms existed, which were trusted and how to put them together.
Schneier filled that gap. He collected the research of the previous twenty years, including public-key cryptography, digital signatures, hash functions, zero-knowledge proofs and many specialised protocols, and wrote it up in plain technical English for programmers. He added descriptions of dozens of algorithms, with notes on their security, and references to the original papers, of which the second edition lists well over a thousand. For a generation of engineers it became the book they learned cryptography from.
The question the book answers is practical. What can cryptography do for someone building a real system, and how does one choose and combine its tools? Schneier answers by starting from problems people actually want to solve: keeping secrets, proving identity, signing contracts, flipping a coin fairly over a telephone, voting, paying anonymously. He then shows which protocols solve them and which algorithms the protocols need.
The book appeared at a political moment. The United States government treated strong cryptography as a munition and restricted its export. The government was also promoting the Clipper chip, a scheme under which encryption keys would be held in escrow so that law enforcement could decrypt communications with a court order. The internet was becoming public, and with it the question of whether ordinary people should have access to strong encryption. Applied Cryptography took a clear side. It put the knowledge in the hands of anyone who could read.
For a reader interested in blockchains, the book is a map of the ideas that later flowed into that field. Digital cash, blind signatures, secret sharing, timestamping, hash chains and zero-knowledge proofs all appear here, described more than a decade before Bitcoin. Reading it now shows how much of what seemed new in 2009 had been thought about in the 1980s and 1990s, and what was in fact new.
The author
Bruce Schneier was born in 1963 in New York. He studied physics at the University of Rochester and computer science at American University. In the late 1980s and early 1990s he worked for the United States Department of Defense and then for AT&T, before setting up as an independent consultant on cryptography. Applied Cryptography was his first major book, and it made him one of the best-known names in the field almost immediately.
He also designed algorithms. Blowfish, a fast block cipher he published in 1993, was released free of patents and licences and was widely used. Twofish, designed by a team he led, was one of the five finalists in the competition that chose the Advanced Encryption Standard at the end of the 1990s. He contributed to the design of random number generators called Yarrow and Fortuna, and to Skein, a hash function that reached the final round of the competition for the SHA-3 standard. He also devised a cipher that can be carried out with a deck of playing cards, which appeared in Neal Stephenson's novel Cryptonomicon.
In 1998 he began a monthly newsletter on security, Crypto-Gram, and later a blog, both of which became widely read. In 1999 he co-founded Counterpane Internet Security, a company that monitored computer networks for intrusions; it was acquired by BT in 2006. Over the following decades he became a public voice on security and privacy, testifying before legislatures, teaching at Harvard's Kennedy School and holding a fellowship at its Berkman Klein Center for Internet and Society.
The trajectory of his later books is important for reading this one. In Secrets and Lies, published in 2000, he wrote that he had been wrong to believe that good mathematics alone could make systems secure. Real failures, he had found, came mostly from bad software, bad configuration, careless users and organisations that did not understand risk. His later books, including Beyond Fear, Liars and Outliers, Data and Goliath, Click Here to Kill Everybody and A Hacker's Mind, move steadily from algorithms to people, institutions and power. He coined the phrase security theater for measures that look protective but do little.
With Niels Ferguson he wrote Practical Cryptography in 2003, a deliberately narrow book that tells engineers which few tools to use and how. Its revised version, Cryptography Engineering, written with Ferguson and Tadayoshi Kohno, sits beside this book on the shelf. Applied Cryptography is a broad survey of everything available; Cryptography Engineering is a careful guide to what to actually do. Schneier's own change of emphasis between the two is one of the lessons of reading them together.
The shape of the argument
The book is organised as a descent from purpose to mechanism and then back out to the world. It starts with what people want to achieve and the protocols that achieve it. It then turns to the practical techniques that make protocols work: key lengths, key management, modes of using ciphers, and ways of combining algorithms. Next comes the long middle, a catalogue of algorithms of every kind, with their designs, their known attacks and the author's judgement of their strength. It ends with the real world: implementations, standards, patents, products and politics.
The ordering is itself an argument. By putting protocols first, Schneier signals that algorithms are tools, not goals. A reader learns what a key exchange, a signature or a secret-sharing scheme is for before learning how any particular cipher scrambles bits. This reverses the order of many academic texts, which start with mathematics and reach applications late. It reflects Schneier's audience: engineers who arrive with a problem and want to know which tools solve it.
The catalogue of algorithms is the part most people remember, and it has aged the most. It gives brief accounts of a very wide range of block ciphers, stream ciphers, hash functions, public-key systems and signature schemes, many of them now obscure or broken. Its value today lies less in the details than in the habits of judgement it shows: how to read a cipher's design, what kinds of attack to look for, and why age and scrutiny count for so much.
Throughout, the prose is direct and often opinionated. Schneier tells the reader which algorithms he trusts and which he does not, and why. He names failures. He is impatient with secrecy, with weak export-grade cryptography and with vendors who make claims they cannot support. This voice is part of what made the book influential. It gave engineers permission to be sceptical and taught them what questions to ask.
A reader should know that the second edition, not the first, is the one usually read and cited. It reorganised and enlarged the material, and it is the edition this study describes. A twentieth-anniversary printing appeared in 2015 with a new introduction but essentially the same body.
Protocols are the point
A protocol is a series of steps, involving two or more parties, designed to accomplish a task. Ordering a meal is a protocol. So is signing a contract before witnesses. A cryptographic protocol is one that uses cryptography to accomplish a task in the presence of people who may cheat, eavesdrop or interfere. Schneier's first and most important idea is that cryptography is useful only inside protocols. An algorithm on its own does nothing. It becomes useful when someone specifies who does what, in what order, with which keys, and what each party learns.
He introduces protocols with a cast of characters that has since become standard in the field. Alice and Bob want to communicate. Eve eavesdrops. Mallory actively interferes, intercepting and altering messages. Trent is a trusted third party. Others appear as protocols grow more complex. The cast makes it easy to say exactly who knows what, and to ask the key question of any protocol: what happens if one of these people cheats?
Protocols fall into types according to how much trust they require. Arbitrated protocols rely on a disinterested third party who takes part in every transaction, like a notary who must witness every signature. Adjudicated protocols use a third party only when there is a dispute, like a judge who looks at evidence after the fact. Self-enforcing protocols need no third party at all: the protocol itself guarantees fairness, and any cheating is detected or impossible. Self-enforcing protocols are the most desirable and the hardest to design.
An analogy helps. Two children dividing a cake can call a parent to cut it, which is arbitration. They can cut it themselves and appeal to a parent if one complains, which is adjudication. Or one can cut and the other choose first, which is self-enforcing: the cutter has every reason to cut evenly. Much of the book is a search for cryptographic equivalents of cut-and-choose.
This idea is often confused with the belief that strong encryption makes a system secure. It does not. A protocol can use an unbreakable cipher and still fail if, for example, an attacker can replay an old message, substitute one party's public key for another's, or trick a party into signing something it did not intend. Many famous protocol failures involve sound algorithms used in a flawed sequence. Schneier gives examples of how protocols can be attacked, and later research found flaws in protocols that had been published and accepted for years, which only strengthens his point.
The idea leads directly to blockchains, which are, at bottom, protocols. Bitcoin uses familiar primitives, hash functions and elliptic curve signatures, but its novelty lies in a protocol that lets many mutually distrustful parties agree on a history of transactions without any Trent. In the language of this book, it is an attempt at a large-scale self-enforcing protocol, with economic incentives taking the place of the cake-cutting rule. Reading Schneier's taxonomy of trust makes it easier to see what Bitcoin actually achieved and what it still relies on.
A toolkit of primitives
Protocols are built from a small number of basic tools, which cryptographers call primitives. Schneier introduces them early so that protocols can be described in terms of them. Symmetric ciphers use the same key to encrypt and decrypt; they are fast and suit bulk data. Public-key algorithms use a public key and a private key; they are slow but solve the problem of distributing keys and make signatures possible. One-way hash functions compress any input to a short fixed-length digest that is hard to invert and hard to collide. Random number generators supply the unpredictable values that keys and many protocols need.
Each primitive has a job, and a designer must know which to use where. To send a long message privately, one typically uses public-key cryptography to agree on a fresh symmetric key and then encrypts the message with a symmetric cipher. To sign a long document, one hashes it and signs the hash. To check that a file has not been altered, one compares hashes. To authenticate a message between two parties who share a key, one uses a message authentication code, which is a keyed hash. Combinations like these, which the book calls hybrid systems, are how nearly all real cryptography works.
An analogy is a carpenter's toolbox. A saw, a plane, a chisel and a drill each do one thing well. A carpenter who used a saw to drill holes would get bad results, however good the saw. Many cryptographic failures come from using a primitive for a job it was not designed for: using a hash where a keyed hash is needed, or encrypting without authenticating, or using a predictable value where randomness is required.
A common confusion is between encryption and integrity. Encryption hides content; it does not by itself prevent tampering. An attacker who cannot read an encrypted message may still be able to change it in useful ways, for instance by flipping bits in a stream cipher's output to flip the same bits in the plaintext. Integrity requires a separate mechanism such as a message authentication code or a signature. Modern practice combines the two in authenticated encryption, but the lesson that they are different properties is already clear in Schneier's treatment.
The toolkit leads to a way of thinking about systems as compositions. Once one sees primitives as components with defined properties, one can ask of any design what property each component provides and whether the whole provides what is needed. That way of thinking has outlasted every particular algorithm in the book. It is how engineers still reason about the security of web connections, messaging apps and blockchains.
One-way functions and the uses of a fingerprint
Among the primitives, the one-way hash function deserves its own attention, because it does more work in modern systems than any other and because it sits at the heart of every blockchain. A hash function takes an input of any length, a word or a whole library, and produces a short output of fixed length, often called a digest or fingerprint. The same input always gives the same output. A good cryptographic hash has three further properties. Given an output, it is infeasible to find an input that produces it. Given one input, it is infeasible to find a second input with the same output. And it is infeasible to find any two inputs whatever that share an output.
The last property, collision resistance, is subtler than it looks. Because of a counting fact known as the birthday paradox, collisions are much easier to find than one might expect. In a room of only twenty-three people, the chance that two share a birthday is better than even, although there are three hundred and sixty-five possible birthdays. In the same way, an attacker searching for any two inputs with matching hashes needs to try only about the square root of the number of possible outputs. A hash with a 128-bit output therefore gives only about 64 bits of collision resistance. Schneier explains this clearly, and it is the reason modern hash functions produce outputs of 256 bits or more.
The uses of a hash function are many. Signing a long document is done by signing its hash, which is short. Storing passwords safely is done by storing their hashes, ideally with a random value mixed in, so that a stolen database does not reveal the passwords themselves. Checking that a downloaded file is intact is done by comparing its hash with a published one. Committing to a value without revealing it can be done by publishing its hash. And linking records into a tamper-evident chain is done by including the hash of each record in the next.
An analogy is a fingerprint. It is small, it identifies a person reliably, and one cannot reconstruct the person from it. Two people with the same fingerprint would undermine the whole system of identification, which is why collisions in hash functions are taken so seriously. When researchers found practical collisions in MD5, a hash function the book describes, it was retired from security use, and certificates built on it became forgeable.
A confusion to avoid is treating a hash as a form of encryption. A hash cannot be decrypted; there is no key and no way back. It is a commitment to content, not a container for it. Another confusion is to use a plain hash where a keyed hash is needed. A plain hash of a message proves nothing about who produced it, since anyone can compute it. To authenticate, one needs a secret key mixed into the computation, which is what a message authentication code provides.
Hash functions lead directly to blockchains. A block header includes the hash of the previous block, so altering any past block changes every hash after it. Transactions within a block are summarised by a tree of hashes, an idea due to Ralph Merkle, so that any single transaction can be shown to belong to the block with a short proof. Bitcoin's proof of work asks miners to find a block whose hash falls below a target, which can be done only by trying vast numbers of inputs. Addresses are themselves hashes of public keys. A reader who understands the properties of hash functions as Schneier presents them has most of what is needed to understand why a blockchain is hard to rewrite.
Putting algorithms to work
Knowing that a block cipher is strong is not the same as knowing how to use it. A block cipher encrypts a single block of fixed size, perhaps eight or sixteen bytes. Real messages are longer. How the cipher is applied to a long message is called its mode of operation, and Schneier explains the main modes and their consequences. This is one of the places where the book is most useful to an engineer, because the choice of mode can matter as much as the choice of cipher.
The simplest mode encrypts each block independently with the same key. It is easy and it is dangerous. Identical blocks of plaintext produce identical blocks of ciphertext, so patterns in the message show through. A famous illustration encrypts a picture this way and finds that the outline of the image is still plainly visible in the encrypted version. Other modes chain blocks together, so that each block's encryption depends on the ones before it, or turn the block cipher into a stream cipher by encrypting a counter and combining the result with the message. Each mode has its own requirements, such as a fresh unpredictable starting value, and its own failure modes if those requirements are ignored.
Schneier also discusses combining ciphers. Encrypting twice with two different keys might seem to double the key length, but a technique called the meet-in-the-middle attack shows that it gives much less extra security than one would expect. This is why the strengthened form of DES used three encryptions rather than two. The general lesson is that intuitions about security are unreliable, and that combinations of algorithms must themselves be analysed rather than assumed to be strong.
An analogy is a strong padlock used on a weak chain. The padlock may be excellent, but if the chain can be cut, the bicycle is gone. A cipher in a poor mode is a strong padlock on a weak chain: the core component resists attack while the way it is attached gives the attacker an easier route.
A confusion to avoid is thinking that these are minor implementation details best left to library writers. In practice, many serious vulnerabilities have come from misuse of modes: reused starting values, unauthenticated chaining modes that leak information through error messages, and similar errors. Modern libraries try to hide these choices behind safer interfaces, but someone has to make them correctly. The book's treatment shows why they matter and what can go wrong.
Secret keys, public algorithms
A principle stated in the nineteenth century by the Dutch cryptographer Auguste Kerckhoffs holds that a cipher should remain secure even if everything about it except the key is known to the enemy. Schneier adopts this principle firmly. The security of a system should rest on the secrecy of keys, which can be changed, and not on the secrecy of algorithms, which are hard to change and tend to leak. An algorithm that has been published and studied for years by many skilled people deserves far more trust than one kept secret by its designers.
The reasoning is practical. Secret algorithms are usually examined only by the few people who designed them, and designers are poor judges of their own work. Published algorithms attract attacks from anyone who wants the credit of breaking them. Surviving years of such attacks is the nearest thing to evidence of strength available in cryptography, since most algorithms cannot be proved secure. Secret algorithms also leak: they can be reverse-engineered from software or hardware, at which point their security, if it depended on secrecy, is gone.
Schneier is direct about the consequence. Engineers should distrust proprietary cryptography whose design is not public, and should be especially wary of vendors who claim that secrecy is a strength. He gives examples of secret algorithms that were broken soon after being exposed. The pattern has continued since, in mobile telephone encryption, in DVD content protection and in many products whose designers believed they were clever enough to do without public review.
An analogy is a lock. A good lock is one whose design is public and that still resists picking. Locksmiths can study it, find weaknesses, and improve it. A lock whose maker insists that nobody see its internals is likely to be one that cannot survive inspection. The key, not the design, should be the secret.
A confusion to avoid is taking this principle to mean that publication makes an algorithm secure. Publication is necessary for trust, not sufficient. Many published algorithms have been broken, and much published work receives little real scrutiny. What earns trust is publication followed by long, serious and public analysis by competent people. This is why open competitions, such as the ones that chose the Advanced Encryption Standard and the SHA-3 hash function, became the standard way of selecting algorithms.
The principle leads to the open-source culture that surrounds modern cryptography and blockchains. Bitcoin's design and code are public, and its security has been studied by thousands of people. Projects that hide their code or rely on unaudited novel cryptography are, by this principle, suspect from the start. Readers of the later books in this bay about crypto collapses will find many cases where Kerckhoffs's principle was ignored.
Key management is the hard part
The mathematics of a good cipher may be sound, but a cipher is only as strong as the handling of its keys. Schneier devotes a substantial part of the book to key management: how keys are generated, how long they should be, how they are distributed, how they are verified, how they are stored, how they are updated and how they are destroyed. His view, repeated throughout his later work, is that this is where real systems most often fail.
Consider each stage. A key generated from a weak random source can be guessed, however long it is. A key distributed without verification can be swapped by an attacker in the middle, who then reads everything. A key stored on an insecure disk can be stolen. A key used for too long accumulates exposure and gives an attacker more material. A key not properly destroyed can be recovered from old media. Each stage requires care, and a failure at any one undoes the strength of the algorithm.
Public-key cryptography solves some of these problems and creates others. It removes the need to share secret keys in advance, but it introduces the question of how one knows that a public key really belongs to the person it claims to. Schneier discusses certificates, in which a trusted party signs a statement binding a key to a name, and webs of trust, in which users vouch for one another's keys, as in the program PGP. Both approaches have weaknesses. Certificate authorities can be compromised or coerced, and webs of trust are hard for ordinary users to manage.
An analogy is a bank vault. The vault door may be impregnable, but if the combination is written on a note in the manager's desk, or told to a new employee over an unencrypted telephone line, the door does not matter. Attackers go where the defence is weakest, and that is rarely the mathematics.
A common confusion is to think that longer keys solve key management. Key length protects against brute-force search. It does nothing against theft, substitution, poor randomness or careless storage. The book does give careful advice on key length, comparing the cost of searching keyspaces with the speed of computers and projecting forward. But it places that advice alongside the other stages, not above them.
Key management leads directly to the defining practical problem of cryptocurrency. In Bitcoin and Ethereum, the private key is the money. Whoever holds it controls the funds, and there is no bank to reverse a theft or restore a lost key. Seed phrases, hardware wallets, multi-signature schemes and custody services are all attempts to solve the key management problem that Schneier described. The large losses from lost keys, stolen keys and compromised exchanges show how hard it remains.
Randomness
Cryptography depends on randomness in a way that is easy to underestimate. Keys must be unpredictable. Many protocols need fresh random values, called nonces, to prevent replay or to hide patterns. Signatures based on discrete logarithms need a new random value for every signature, and reusing one can reveal the private key. If an attacker can predict any of these values, the cryptography fails, regardless of the algorithm's strength.
Computers are deterministic machines and are bad at producing true randomness. Schneier distinguishes between pseudorandom generators, which stretch a short seed into a long sequence that looks random, and sources of real randomness, which draw on unpredictable physical events such as timing of keystrokes, disk movements or electrical noise. A cryptographically secure pseudorandom generator must produce output that cannot be predicted even by someone who has seen much previous output. Ordinary random functions provided by programming languages, designed for simulations and games, do not meet this standard.
The record is full of systems broken through bad randomness. A well-known case from the mid-1990s involved a web browser whose session keys were derived from easily guessed values such as the time of day and process numbers, which allowed researchers to recover keys in minutes. Similar failures have recurred: a widely used operating system's library once had its entropy reduced by a well-meant code change, leaving keys generated over a period of years guessable.
An analogy is shuffling cards. A shuffle that looks thorough but follows a fixed pattern can be tracked by a skilled observer, who then knows where every card is. Real security needs a shuffle that nobody, including the dealer, can predict.
A confusion to avoid is equating statistical randomness with cryptographic unpredictability. A sequence can pass every statistical test for randomness and still be predictable to someone who knows how it was produced. The digits of pi look random but are entirely determined. Cryptography needs sequences that are unpredictable to an adversary, which is a stronger requirement.
This idea leads to the later design work Schneier did on generators such as Yarrow and Fortuna, which try to gather entropy from many sources and recover from compromise. It also leads to recurring disasters in cryptocurrency, where faulty random number generation in wallet software has allowed private keys to be computed by attackers. The lesson is old; it continues to be relearned.
What protocols can do beyond secrecy
The part of the book that most excited readers, and that most anticipated later developments, describes advanced protocols. These go far beyond keeping messages secret. They show that cryptography can make possible kinds of cooperation that seem paradoxical: proving something without revealing it, signing something without seeing it, splitting a secret so that no single person holds it, running an election in which votes are both secret and verifiable, and paying with money that cannot be traced to the payer.
Zero-knowledge proofs let a prover convince a verifier that a statement is true without revealing why. The classic illustration involves a cave with a locked door: someone who knows the password can always emerge from the side the verifier asks for, while someone who does not will be caught half the time, and repeated trials make cheating overwhelmingly likely to be detected. The verifier ends up convinced but learns nothing about the password itself. Secret sharing splits a key into pieces so that any sufficient number of them can reconstruct it while fewer reveal nothing; Adi Shamir's scheme does this using polynomials. Bit commitment lets a party lock in a choice without revealing it, as in sealing a guess in an envelope, and is a building block for fair coin flipping and many other protocols.
Blind signatures, invented by David Chaum, let someone obtain a signature on a message the signer cannot see. Chaum used them to design digital cash. A bank signs a blinded coin, the customer unblinds it, and later the bank can verify that the coin is genuine without being able to link it to the withdrawal. Additional techniques catch anyone who tries to spend the same coin twice. Chaum founded a company, DigiCash, to put this into practice in the 1990s. It did not succeed commercially, but the ideas did not die.
Schneier also describes protocols for secure elections, for simultaneous contract signing, for certified mail and for timestamping. Timestamping deserves special mention. The book describes a method, developed by Stuart Haber and Scott Stornetta, in which documents are hashed and linked so that each timestamp depends on the previous ones, making it impossible to backdate a document without altering the whole chain. Bitcoin's white paper cites their work, and a chain of hashed blocks is exactly what a blockchain is.
A confusion to avoid is thinking that these protocols were ready for use. Many were elegant on paper but impractical, slow or dependent on assumptions that did not hold in real deployments. Electronic voting, in particular, has proved far harder in practice than the protocols suggested, and Schneier himself later became a prominent sceptic of computerised voting systems. The protocols show what is possible in principle. Turning them into systems is a separate and difficult task.
These ideas lead straight into the books later in this bay. Digital cash, double-spending prevention, hash-linked timestamps, secret sharing and zero-knowledge proofs are all central to cryptocurrency. What Bitcoin added was a way to prevent double spending without a bank, using proof of work and a public ledger. What later systems added were practical zero-knowledge proofs efficient enough to use at scale. Reading this chapter of the book first makes those later innovations much easier to place.
Thinking like the attacker
Throughout the book Schneier asks the reader to think as an attacker would. A cryptographic design is only as good as the best attack against it, and the designer's job is to anticipate attacks rather than to admire the design. This habit of mind, which he later called the security mindset, is arguably the most durable thing the book teaches.
He sets out the standard attack models. In a ciphertext-only attack, the attacker sees only encrypted messages. In a known-plaintext attack, the attacker also knows some plaintexts and their encryptions, which is common in practice because messages often begin with predictable headers or greetings. In a chosen-plaintext attack, the attacker can have messages of its choosing encrypted. In a chosen-ciphertext attack, it can have ciphertexts of its choosing decrypted. A cipher that resists only the weakest of these is of little use, because real attackers frequently enjoy the stronger positions.
He also discusses the attacks that matter in practice beyond mathematics: brute-force search through every key, attacks on the people who hold keys, and what he calls rubber-hose cryptanalysis, the extraction of keys by threats or force. He reminds the reader that it is often cheaper to bribe a clerk than to break a cipher. That reminder, delivered in a book full of algorithms, is part of what makes the book honest.
Key length is treated through this lens. Schneier estimates what it would cost, in hardware and time, to search a keyspace of a given size, and how that cost falls as computers improve. He concludes that the 56-bit keys of the Data Encryption Standard were already within reach of well-funded attackers, and that much longer keys were needed for long-term security. His estimates were borne out in 1998, when the Electronic Frontier Foundation built a machine for about a quarter of a million dollars that found a DES key in a few days. Symmetric keys of 128 bits, which he recommended, remain standard.
An analogy is the way a burglar sees a house. The owner sees a strong front door. The burglar sees an open window, a weak back door, a ladder in the garden and a spare key under the mat. Security work consists in seeing the house as the burglar does.
A confusion to avoid is thinking that the attacker's view is cynical or paranoid. It is simply realistic. Systems are attacked by people who look for the weakest point, and a designer who does not look for it first will be surprised. The mindset is also generous in one sense: it assumes attackers are clever, which is usually true, rather than assuming they are lazy, which is a common and costly mistake.
This idea leads to the culture of public audits, bug bounties and adversarial review that now surrounds serious security work, including the smart contracts that run on blockchains. Many of the largest thefts in decentralised finance came from contracts whose authors had not thought through what an attacker could do with the steps they had written.
Cryptography and the state
The last part of the book turns to politics, and here Schneier writes as an advocate. In the early 1990s the United States government classified strong cryptographic software as a munition under export regulations. Companies could not ship products with strong encryption abroad without a licence, which was rarely granted for anything stronger than deliberately weakened keys. The result was that most software sold worldwide used encryption that a government agency, or a determined amateur, could break.
The book itself became part of the story. An engineer named Phil Karn asked the State Department whether he could export a copy of Applied Cryptography. He was told he could. He then asked whether he could export a floppy disk containing exactly the source code printed in the book. He was told he could not. The absurdity of a rule that permitted the printed words but forbade the same words in electronic form became a widely cited example in the campaign against export controls, and Karn challenged the ruling in court. Export rules were substantially relaxed by the end of the 1990s, under pressure from industry, courts and changing technology.
The other major controversy was key escrow. The government's Clipper chip proposal, announced in 1993, would have built a hardware encryption device into telephones and other equipment, with copies of each device's key held by government agencies and released to law enforcement with legal authorisation. Schneier explains the scheme and its problems: the secrecy of its algorithm, the concentration of risk in the escrow databases, the cost and the likelihood that criminals would simply use other encryption. Researchers found a flaw that allowed the escrow mechanism to be bypassed, and the proposal was abandoned.
An analogy for escrow is a master key for every lock in a city, kept by a public office for use with a warrant. It would help police. It would also mean that one theft, one corrupt employee or one foreign breach could open every door. The argument that escrow weakens security for everyone, not just for criminals, was made forcefully in the 1990s and is still made in each new round of debate.
A confusion to avoid is reading this part of the book as hostility to law enforcement as such. Schneier acknowledges the interests of police and intelligence agencies. His argument is that weakening cryptography for everyone is a bad trade, because it makes ordinary people, companies and governments themselves less secure against criminals and foreign powers, while determined criminals would use strong cryptography anyway.
These debates, often called the crypto wars, have never really ended. They returned with smartphone encryption in the 2010s, with end-to-end encrypted messaging, and with proposals to scan private messages on devices. In the cryptocurrency world they appear as arguments over privacy coins, mixers and the regulation of self-custody. Steven Levy's Crypto and Andy Greenberg's This Machine Kills Secrets, both on this shelf, tell more of the story.
Security is a system, not a cipher
A final idea runs underneath the whole book and became explicit in Schneier's later work. Cryptography is one component of security, and often not the most important one. A system with excellent cryptography can be broken through software bugs, poor configuration, weak passwords, social engineering, insider threats or simple mistakes in how the cryptography is used. The book is full of hints of this: its chapters on key management, implementation and real-world products all show the gap between theory and practice.
By the time of Secrets and Lies, Schneier was saying it plainly. He had once believed that mathematics could solve the problem of security. Experience as a consultant had convinced him otherwise. Systems are complex, complexity creates vulnerabilities, and the human beings who use systems are part of them. Security, he argued, is a process of continual assessment and response, not a product that can be bought.
An analogy is the safety of an aircraft. Strong engines and a sound airframe are essential, but crashes more often involve maintenance, communication, procedures and human judgement. An airline that bought the best engines and ignored training would not be safe. A company that bought the best cryptography and ignored everything else would not be secure.
A confusion to avoid is concluding that cryptography therefore does not matter. It matters a great deal: without it, many forms of security would be impossible. The point is that cryptography is necessary but not sufficient, and that the hard work of security lies in integrating it correctly into a larger system of people and software.
This idea leads directly to the later books in this bay that describe crypto failures. The large collapses and thefts recorded in Number Go Up by Zeke Faux, The Cryptopians by Laura Shin and Going Infinite by Michael Lewis were almost never failures of cryptographic algorithms. They were failures of custody, governance, honesty, software and human judgement, which is exactly where Schneier came to say the real risks lie.
The tradition around it
Applied Cryptography stands at the point where cryptography moved from secret and academic circles into public engineering practice. Before it, the main public sources were David Kahn's history The Codebreakers, published in 1967, which described classical cryptography in detail but predated the modern era, and the research papers of the 1970s and 1980s, beginning with Diffie and Hellman's paper on public-key cryptography in 1976 and the RSA paper of 1977. Government standards such as the Data Encryption Standard, adopted in 1977, gave engineers one algorithm without much explanation of the field around it.
Schneier's book built on that research literature and made it usable. It appeared at the same time as the first widely used public-key software for individuals, Phil Zimmermann's PGP, released in 1991, and as the community of cypherpunks was arguing that strong cryptography for everyone would change society. Steven Levy's Crypto, on this shelf, tells the story of this period, and The Sovereign Individual by Davidson and Rees-Mogg gives a political interpretation of it.
The cypherpunks deserve a further word, since they connect this book to the rest of the bay. They were a loose group of programmers, mathematicians and activists who, from the early 1990s, discussed on a mailing list how strong cryptography could protect privacy and limit the power of states and corporations. Many of them read Applied Cryptography closely and used it as a reference. Several proposals for digital money that circulated among them, built from hashes, signatures and timestamps of the kind the book describes, are now seen as forerunners of Bitcoin, whose white paper was first announced on a cryptography mailing list in 2008.
Two years after the second edition of Applied Cryptography, Menezes, van Oorschot and Vanstone published the Handbook of Applied Cryptography, also on this shelf. The Handbook is more mathematical, more precise and more systematic; Schneier's book is broader, more readable and more opinionated. Many practitioners kept both. For the number theory underneath public-key systems, Neal Koblitz's A Course in Number Theory and Cryptography gives the proofs that Schneier omits.
After it came books that corrected and updated it. Cryptography Engineering by Ferguson, Schneier and Kohno narrowed the advice to a small set of sound choices and placed much more weight on implementation. Introduction to Modern Cryptography by Katz and Lindell brought the formal definitions and proofs of theoretical cryptography into a textbook. Serious Cryptography by Jean-Philippe Aumasson gives a current practical survey for engineers. A reader who wants to know what to use today should go to those books.
For the blockchain books in the bay, Applied Cryptography is a precursor. The ideas of digital cash, blind signatures, linked timestamps and zero-knowledge proofs that it describes were the material from which Bitcoin and its successors were made. Digital Gold by Nathaniel Popper and The Age of Cryptocurrency by Vigna and Casey describe the cypherpunk community that read Schneier and then built something new. Mastering Bitcoin and Mastering Ethereum show what was built.
Questions and criticisms
The most obvious criticism is that much of the book is out of date. Many of the algorithms it describes have been broken or retired. DES has been replaced by AES. Hash functions it treated as sound, such as MD5, have been broken in practice, and SHA-1 has fallen to collision attacks. Some recommendations about modes of operation and key sizes no longer match current standards. Schneier himself has said that readers should not use the book as a guide to current practice. Its value now is historical and conceptual.
A second criticism, made by Schneier himself among others, is that the book encouraged engineers to implement cryptography from its descriptions and code, which led to many weak implementations. Cryptographic code is notoriously hard to write correctly: small errors in padding, comparison timing or random number handling can be fatal. The breadth of the book, presenting dozens of algorithms as available options, may also have encouraged readers to choose obscure ones or to combine them in untested ways. Cryptography Engineering was written partly to correct this, offering a few well-chosen tools instead of a catalogue.
A third criticism concerns rigour. The book describes protocols and algorithms informally and does not define security precisely. Later theoretical cryptography showed that informal security claims often hide gaps, and that protocols which look secure can fail under carefully defined attack models. Readers who want precise definitions and proofs should read Katz and Lindell. Those who want a sober account of how much such proofs actually guarantee will find Koblitz and Menezes's later critical writings useful as well.
What has held up? A great deal. The emphasis on protocols, the toolkit view of primitives, Kerckhoffs's principle, the centrality of key management, the importance of randomness, the attacker's mindset and the political analysis of export controls and escrow all remain sound. The survey of advanced protocols reads now as an early map of territory that blockchains and privacy technology later settled. Even the outdated algorithm catalogue teaches something: how many confident designs fail, and how long it can take to find out.
Later work has also changed the emphasis. Side-channel attacks, which extract keys by measuring timing, power consumption or electromagnetic emissions, were only beginning to be understood when the second edition appeared and are now a major concern. Authenticated encryption, constant-time implementation and misuse-resistant design have become central. Post-quantum cryptography, needed because of quantum algorithms discovered in 1994 and later, is entirely absent. A reader should hold the book's picture of the field lightly and update it from newer sources.
One more question is worth raising: whether a book of this kind, which presents so much so confidently, gives a reader a fair sense of uncertainty. Cryptography is a field in which almost nothing is proved. The strength of a cipher is an inference from the failure of attacks so far. Schneier is candid about this in many places, and he often reports that an algorithm is too new to judge. But a reader working through a long catalogue in which most entries end with a verdict can come away with more confidence in those verdicts than the evidence warranted. Several algorithms the book treated with guarded approval were later broken. The fair lesson is not that the author misjudged, but that any judgement in this field carries a date.
Finally, the book's politics have drawn their own debate. Some readers in government and law enforcement regarded its stance on export controls and escrow as one-sided. Others thought it did not go far enough in describing how much surveillance strong cryptography could prevent. Later revelations about the scale of state surveillance, published in 2013, made the book's warnings look prudent rather than alarmist to many readers, while the continued use of encrypted tools by criminals keeps the other side of the argument alive. A reader can take the book's position seriously without adopting it, and the questions it raises remain open.
Why it is on this shelf
This bay holds books on cryptography, blockchain and crypto. Applied Cryptography is the book that brought cryptography to working programmers, and in doing so it set out the ideas from which much of the crypto world later grew. It is the bridge between the mathematical books in the bay and the books about Bitcoin and its successors.
We keep it for three reasons. First, as a map of ideas: no other single book shows so clearly the range of what cryptographic protocols can do, from simple secrecy to digital cash and secret voting. Second, as history: it records the state of the field and the politics around it at the moment cryptography became public, and it shows how much of what blockchains use was already known. Third, as an education in judgement: its constant attention to attacks, to keys and to the gap between theory and practice is as useful now as it was in 1996.
A reader who also studies Vedanta, Jyotish, science and economics will notice something familiar in its method. It asks what is really protected and what only appears protected, which assumptions a system rests on, and where a hidden weakness lies beneath a confident surface. That habit of questioning appearances is the same habit that serious study in any of those fields demands.
We do not keep it as a manual. Its specific recommendations should be checked against newer books before anything is built. Its lasting value lies in what it teaches about how to think.
How to read it
Do not try to read this book cover to cover on a first pass. It is a reference work, and its long middle section is a catalogue meant to be consulted rather than read straight through.
Start with the opening chapters on protocol building blocks and basic protocols. Read them carefully, a chapter at a sitting. For each protocol, draw a diagram showing which party sends what to whom, and then ask what happens if each party cheats in turn. This exercise is the best way to absorb the book's way of thinking.
Next, read the material on advanced and esoteric protocols, including zero-knowledge proofs, blind signatures, secret sharing, secure elections and digital cash. This is the part most relevant to blockchains. Keep a list of each protocol's purpose and the primitive it relies on. Later, when you read Mastering Bitcoin or Bitcoin and Cryptocurrency Technologies, check the list and see which ideas reappear.
Then read the chapters on key length, key management and random number generation. These are short relative to the whole and among the most practically valuable. Work through the key length estimates with modern computing costs to see how the conclusions hold up.
Skim the algorithm chapters. Read the general introductions to each family, such as block ciphers, stream ciphers, hash functions and public-key algorithms, and then dip into a few specific algorithms that interest you, especially those that are still in use or historically important, such as DES, RSA and the Diffie-Hellman family. Do not try to learn the dozens of obscure ciphers. Read the final part on the real world and politics as history.
Keep a notebook as you go. For each idea that seems important, write the date of the book beside it and a question: is this still true? Later, as you read newer books, return to the notebook and mark what has changed. This turns an old reference into a lesson in how a technical field moves, and it guards against carrying outdated advice into new work.
For what to read next from this shelf, read Cryptography Engineering immediately afterwards, to replace the catalogue with sound current practice. Then Serious Cryptography for a modern survey. For the mathematics, go to Koblitz. For the history of the period, Steven Levy's Crypto. For where the ideas ended up, Mastering Bitcoin and Bitcoin and Cryptocurrency Technologies.
Questions to carry
- Why does Schneier treat protocols, rather than algorithms, as the basic unit of cryptography?
- What is the difference between arbitrated, adjudicated and self-enforcing protocols, and which kind is a blockchain trying to be?
- Why is the secrecy of keys a better foundation for security than the secrecy of algorithms?
- At which stage of key management do real systems most often fail, and why?
- What is the difference between data that looks random and data that an attacker cannot predict?
- How can someone prove knowledge of a secret without revealing anything about it?
- How did blind signatures make anonymous digital cash possible, and what problem did they leave for a bank to solve?
- Why are linked timestamps hard to forge, and how does that idea reappear in a blockchain?
- Which attack model, ciphertext-only, known-plaintext, chosen-plaintext or chosen-ciphertext, best describes the attacker you would face in a given system?
- Why did the export of the printed book and the export of a disk with the same code receive different treatment, and what did that show?
- What are the strongest arguments for and against key escrow?
- Why did Schneier come to believe that good mathematics alone does not make a system secure?
- Which of the book's recommendations have aged, and which principles have held?
- In the crypto failures described in later books on this shelf, where did the weakness lie, if not in the cryptography?
Words to know
- Arbitrated protocol: A protocol in which a trusted third party takes part in every transaction.
- Authenticated encryption: Encryption that also guarantees a message has not been altered.
- Bit commitment: A protocol for locking in a choice without revealing it until later.
- Blind signature: A signature obtained on a message that the signer cannot see, used by David Chaum for digital cash.
- Block cipher: A symmetric cipher that encrypts fixed-size blocks of data, such as DES or AES.
- Brute-force attack: Trying every possible key until the right one is found.
- Certificate: A signed statement by a trusted party binding a public key to a name.
- Chosen-plaintext attack: An attack in which the attacker can have messages of its choosing encrypted.
- Data Encryption Standard (DES): A United States block cipher standard of 1977 with 56-bit keys, now obsolete.
- Digital cash: Electronic money designed to be verifiable and, in some designs, untraceable to the spender.
- Key escrow: An arrangement in which copies of encryption keys are held by a third party for possible use by authorities.
- Kerckhoffs's principle: The rule that a cipher should remain secure even if everything except the key is public.
- Key management: Generating, distributing, verifying, storing, changing and destroying keys safely.
- Message authentication code: A short value computed from a message and a secret key that lets the receiver detect tampering.
- Nonce: A value used only once in a protocol, often random, to prevent replay or pattern leaks.
- One-way hash function: A function that compresses any input to a fixed-length digest and is hard to invert or collide.
- Primitive: A basic cryptographic building block, such as a cipher, hash function or signature scheme.
- Protocol: A defined sequence of steps by which two or more parties accomplish a task.
- Pseudorandom generator: An algorithm that stretches a short random seed into a long sequence that appears random.
- Secret sharing: Splitting a secret into pieces so that enough pieces reconstruct it and fewer reveal nothing.
- Side-channel attack: An attack that extracts secrets from physical effects such as timing or power use rather than from the mathematics.
- Stream cipher: A symmetric cipher that combines plaintext with a pseudorandom keystream bit by bit or byte by byte.
- Symmetric cipher: A cipher that uses the same key to encrypt and decrypt.
- Timestamping: Proving that a document existed at a certain time, for example by linking its hash to a chain of earlier hashes.
- Zero-knowledge proof: A proof that convinces a verifier a statement is true while revealing nothing else.
A note on this edition
This is a study edition written for the shelf in our own words. It describes Schneier's book and discusses its ideas but does not reproduce its text, its descriptions of algorithms or its source code, and the examples and analogies here are our own. The book itself is in copyright and remains in print. It is worth getting from a library or bookshop, both as a record of an important moment in the history of cryptography and as a map of ideas that still shape the field.