About this book
The Handbook of Applied Cryptography was published by CRC Press in 1996. Its three authors, Alfred Menezes, Paul van Oorschot and Scott Vanstone, were working researchers in the field, based in Canada, and they wrote it for people who needed to get cryptography right in practice: engineers building secure systems, researchers checking a definition, students moving from textbooks to real work, and standards writers who wanted a common vocabulary. It appeared in a series on discrete mathematics and its applications, and it reads like what it is: a careful technical reference rather than a story or a manifesto.
The book arrived at a particular moment. In the mid-1990s cryptography was moving out of military and banking back rooms and into ordinary computing. The web was new, secure connections for shopping were being designed, smart cards were spreading, and governments were still arguing about export controls on strong encryption. Academic cryptography had grown fast since public-key methods were published in the late 1970s. There were hundreds of papers, many proposals, many broken proposals, and a great deal of folklore. What was missing was one place where a careful reader could find the accepted definitions, the main algorithms written out exactly, the known attacks, and pointers to the original literature.
That is the question the handbook sets out to answer: what does a practitioner actually need to know, stated precisely enough to be used? The authors did not try to prove every theorem or to tell the history of every idea. They tried to collect the working knowledge of the field, organise it, define it, and make it checkable. Where a textbook would say that a system is believed to be secure, the handbook tries to say secure against what, under which assumption, and with what known exceptions.
The book is long and dense. It is built from numbered definitions, facts, algorithms, notes, examples and remarks, so that any item can be cited and found again. Each chapter closes with notes and references that trace ideas back to their sources, and those notes are one of the most valuable parts of the work. The publisher later agreed that the chapters could be downloaded free for personal use, which turned an expensive reference into one of the most widely used free resources in the subject.
It is worth being clear about what the handbook is not. It is not a gentle introduction; the authors assume the reader is willing to work. It is not a book of security engineering in the wider sense, about people, organisations and failure in the field. And it is not current: it predates the Advanced Encryption Standard, modern authenticated encryption, the widespread use of elliptic curves in everyday protocols, and the formal security definitions that later became standard in teaching. What it offers instead is a stable foundation. The primitives it describes, and the way it thinks about them, still sit under the systems built since.
For a reader on this shelf, the value is simple. Almost everything in digital money, signed software, secure messaging and key management rests on a small set of tools: hash functions, block and stream ciphers, public-key encryption, digital signatures, and protocols for identifying parties and agreeing on keys. This book defines those tools with unusual care. When a popular account says that something is cryptographically secure, the handbook is where one can go to see what that phrase could possibly mean.
The authors
Alfred Menezes is a mathematician and cryptographer at the University of Waterloo in Ontario. His early research concerned elliptic curves, and he wrote one of the first books on elliptic curve public-key cryptosystems in the early 1990s. He later co-wrote a widely used guide to elliptic curve cryptography with Darrel Hankerson and Scott Vanstone. In more recent years he has been known for careful, sometimes sceptical studies of how security proofs are stated and used, written with Neal Koblitz, whose number theory and cryptography text sits elsewhere in this bay. That scepticism is already visible in the handbook, which is careful never to claim more than is known.
Paul van Oorschot is a computer scientist at Carleton University in Ottawa. His work has ranged across authentication protocols, key establishment, public-key infrastructure, usable security and the security of software systems. He spent time in industry as well as academia, which shows in the handbook's attention to protocols as they are actually deployed. Much later he wrote a broad textbook on computer and internet security, aimed at giving students a sound grasp of the field beyond cryptographic primitives alone.
Scott Vanstone, who died in 2014, was a mathematician at Waterloo and one of the most important early champions of elliptic curve cryptography. He co-founded the company Certicom, which developed and promoted elliptic curve methods for commercial use and held a large patent portfolio around them. Certicom was later acquired by the maker of BlackBerry devices. Vanstone combined pure research in finite fields and combinatorics with a strong interest in getting cryptography into products, and he was active in standards work.
Together the three had what a book like this needs: deep mathematics, close knowledge of protocols and their failures, and experience of standards and industry. They also belonged to a Canadian cryptographic community, centred on Waterloo, that was unusually strong in the algebra behind public-key systems. The handbook's chapters on number-theoretic problems, efficient arithmetic and public-key parameters reflect that strength. Its chapters on protocols and key management reflect the industrial side.
One consequence of this background deserves a note. Two of the authors were closely tied to elliptic curve cryptography, yet the handbook treats elliptic curves only briefly. In 1996 the field was still young in practice, and the authors kept the book's weight on methods that were then widely deployed: RSA, discrete-logarithm systems in ordinary finite fields, symmetric ciphers such as DES, and hash functions of the MD4 family. The restraint is typical of the book. It describes the field as it stood, not as its authors might have wished it to be.
The shape of the book
The handbook can be read as moving through five broad zones. It opens with an overview chapter that surveys the whole subject at a gentle level and introduces the vocabulary. It then builds a mathematical base: probability, information theory, complexity, number theory and finite fields, followed by a chapter on the hard problems on which public-key cryptography depends. With that base in place, it turns to the primitives themselves: random bit generation, stream ciphers, block ciphers, public-key encryption, hash functions, signatures. Then it moves up a level to protocols, meaning identification and key establishment, and to key management in organisations. Finally it returns to the ground with efficient implementation and with patents and standards.
The order is deliberate. Each layer depends on the one beneath it. A signature scheme cannot be understood without hash functions and a hard problem; a key establishment protocol cannot be judged without signatures, encryption and a model of what an attacker can do. The reader who follows the book from front to back sees cryptography assembled from parts, rather like a building rising from a survey of the site, to foundations, to load-bearing walls, to rooms, to the services that make the rooms usable.
Inside each chapter the book uses a strict format. Definitions state exactly what an object is. Facts state results, often with a reference rather than a proof. Algorithms are boxed with named inputs, outputs and numbered steps, so that they can be implemented directly or compared line by line with someone else's code. Notes and remarks add warnings, variations and practical points. Examples work through small cases with real numbers. Everything is numbered by chapter, which makes cross-references precise.
This format is an argument in itself. The authors believe that cryptography fails most often through vagueness: a goal that was never stated, an assumption that was never written down, an algorithm described loosely enough that two implementers build different things. By forcing every item into a defined slot, the handbook makes vagueness visible. A reader can see when a claim is a definition, when it is a proven fact, when it is a belief supported by experience, and when it is a recommendation.
The chapter notes deserve separate mention. They are long, dense with references, and often more candid than the main text. They say who proposed a method, who attacked it, what remains open, and what the authors regard as settled. A reader who wants to understand how a primitive came to be trusted can follow those notes outward into the research literature. In that sense the handbook is also a map of the field's history up to the mid-1990s, organised by topic instead of by date.
Finally, the book is designed to be entered at any point. The overview chapter is self-contained. The mathematical chapter is written so that later chapters can refer back to particular facts. A reader interested only in hash functions can go straight there and follow cross-references when needed. This is a reference work in the strict sense: its value lies less in reading it once than in returning to it many times.
Using it as a reference
Because the book is built for lookup, it rewards a particular way of working. When a question arises, such as what exactly a key derivation step must guarantee, or how a given identification scheme resists replay, the reader finds the relevant definition first, then the facts that bear on it, then any algorithm, and finally the chapter notes. That order matters. Starting from the algorithm tempts one to copy it; starting from the definition makes one ask whether the algorithm actually achieves what is needed.
It also helps to treat the handbook as a source of vocabulary for review. When reading a design document or a whitepaper, one can check each security claim against the handbook's terms. Does the document say which goal it serves? Does it name the attacker model? Does it rely on a hard problem, and is that problem one the handbook lists with known attacks? A surprising number of designs fail this simple check, and the failure is often the first sign of deeper trouble.
Idea one: security begins with a stated goal
The first and deepest idea in the handbook is that cryptography does not provide security in general. It provides specific services against specific threats. The overview chapter names the basic goals: confidentiality, which keeps information from those not entitled to see it; data integrity, which detects unauthorised changes; authentication, which identifies parties and the origin of data; and non-repudiation, which prevents someone from later denying a commitment they made. Every tool in the book is described in terms of which of these goals it serves.
This sounds obvious, but it is the most common thing people get wrong. Consider a simple case. Someone encrypts a message and assumes it is now safe from tampering. But encryption, by itself, is a confidentiality tool. With many common modes, an attacker who cannot read the message can still flip bits in it and cause predictable changes in what the receiver decrypts. The sender wanted integrity and authentication as well, and never asked for them. The handbook's separation of goals makes this error hard to commit.
A useful analogy is a house. Locks on the doors keep people out; that is confidentiality. A seal on a letter box shows whether anyone has opened it; that is integrity. A signed delivery receipt shows who handed over a parcel; that is authentication of origin. A notarised contract prevents one party from later saying it was never signed; that is non-repudiation. Nobody would expect a good door lock to produce a notarised contract. Yet in digital systems people often expect one mechanism to provide all four.
The handbook adds a second layer to this idea: the model of the adversary. A goal is only meaningful once one says who is attacking and with what powers. Can the attacker only listen, or also alter messages? Can they ask for encryptions of messages of their choice, or decryptions? Can they run many sessions of a protocol at once? A scheme may be safe against a listener and broken by an active attacker. The book's attack classifications, for ciphers, signatures and protocols, give names to these differences so that claims can be stated precisely.
Later work in theoretical cryptography made this idea far more formal, with security games and reductions that turned informal goals into mathematical statements. The handbook stands just before that shift became standard in teaching, and its treatment is more descriptive. But the habit it teaches is the same: never accept a security claim without first asking what goal it serves and against what attacker. That habit is worth more than any single algorithm in the book.
For anyone working with digital money, the idea has a direct application. A transaction system needs integrity, so that amounts cannot be changed in transit; authentication, so that only the owner can spend; and something close to non-repudiation, so that a valid spend cannot be disowned. It does not necessarily need confidentiality at all, and many public ledgers deliberately give it up. Seeing which goals a system actually provides, and which it sacrifices, is the first step in understanding it.
Idea two: hard problems are the ground floor
Public-key cryptography rests on mathematical problems that are easy to set up and believed to be hard to undo. The handbook gives a full chapter to these reference problems before it describes any public-key scheme. The central ones are integer factorisation, the problem of finding the prime factors of a large number, and the discrete logarithm problem, the problem of finding an exponent when given a base and the result of raising the base to that exponent in a finite group. Related problems include computing square roots modulo a composite number and the Diffie-Hellman problem, which asks for a shared secret given only the public values exchanged.
The point of the chapter is not just to list these problems but to describe the best known methods for attacking them, and to show how they relate to one another. For factorisation, the book covers methods from simple trial division to the quadratic sieve and the number field sieve. For discrete logarithms, it covers generic methods such as baby-step giant-step and Pollard's rho, which work in any group, and index-calculus methods, which exploit special structure in some groups and are much faster there.
Why does this matter for a practitioner? Because the size of a key is only meaningful in relation to the best known attack. A key of a given length may be comfortably safe for one problem and dangerously short for another. The difference between generic and specialised attacks explains much of modern practice. Elliptic curve groups, as far as is known, resist index-calculus methods, so only generic attacks apply, and that is why elliptic curve keys can be much shorter than RSA keys for similar security. The handbook lays the ground for understanding this, even though its own treatment of elliptic curves is short.
An analogy helps. Imagine a safe whose strength depends on how long it takes to try combinations. If the only attack is to try every combination, a modest number of digits is enough. If someone finds that the safe leaks a click when each digit is correct, the same number of digits becomes useless. Hard-problem cryptography is a continual effort to know whether any such click exists. The chapter on reference problems is a record of the clicks found so far.
The book is also careful about reductions between problems. If one can factor, one can compute square roots modulo a composite; for some schemes the reverse also holds, which means breaking the scheme is provably as hard as factoring. For RSA itself, no such equivalence is known: breaking RSA might in principle be easier than factoring. Distinctions like these are easy to lose in popular accounts, and the handbook keeps them in view.
What it could not include was the later threat from quantum computing. A sufficiently large quantum computer running Shor's algorithm would solve both factorisation and discrete logarithms efficiently, which would break RSA, Diffie-Hellman and elliptic curve systems alike. Shor's result was published in the mid-1990s, close to the handbook's appearance, and the practical response, post-quantum cryptography based on different hard problems, came much later. A modern reader should keep this in mind: the handbook's ground floor is solid against classical computers, and the industry is now building a second foundation beside it.
Idea three: randomness is a resource
A recurring theme of the handbook is that cryptography consumes randomness, and that bad randomness quietly destroys good algorithms. Keys must be unpredictable. Many signature schemes need a fresh secret random value each time they sign. Protocols use random challenges and nonces to prevent replay. If any of these values can be guessed or repeats, the strongest mathematics in the world does not help.
The book separates two ideas that are often blurred. A random bit generator produces bits from some physical or unpredictable source. A pseudorandom bit generator takes a short random seed and stretches it into a long sequence that looks random. The handbook then asks what looks random should mean. It describes statistical tests that check sequences for obvious patterns, and it explains why passing such tests is not enough: a sequence can pass every standard statistical test and still be completely predictable to someone who knows how it was made.
The stronger notion is that of a cryptographically secure pseudorandom generator: one where no efficient method can predict the next bit with more than negligible advantage, given all the previous bits. The book presents generators whose security can be tied to hard problems, such as the Blum-Blum-Shub generator, whose unpredictability rests on the difficulty of factoring. These are slow, and practical systems usually use generators built from block ciphers or hash functions instead, but they show that unpredictability can be made precise.
Consider a practical failure that illustrates the point, of a kind that has occurred many times in real systems. A signature scheme requires a fresh secret number for each signature. If the same number is used twice, or if its first few bits are predictable, an attacker who sees the signatures can often solve for the private key. The flaw is not in the signature algorithm or in the hard problem. It is in the source of randomness. The handbook's insistence on treating randomness as a security-critical input, with its own definitions and tests, anticipates many such failures.
There is a broader lesson here. People tend to think of cryptography as a set of clever algorithms, but much of its strength comes from secrets that are only as good as the process that created them. A key generated from a predictable clock value, a password, or a weak library is not a strong key, whatever its length. The handbook's chapter on pseudorandom bits is one of the less glamorous parts of the book and one of the most important.
Idea four: symmetric ciphers and their honest limits
Symmetric cryptography, where sender and receiver share the same secret key, is the workhorse of practical encryption. The handbook treats it in two families. Stream ciphers generate a long keystream and combine it with the message, usually by exclusive-or. Block ciphers transform fixed-size blocks of data under a key, and are used in modes of operation to handle messages of any length.
For stream ciphers, the book gives much attention to linear feedback shift registers. These are simple circuits that produce long sequences with good statistical properties, and they were widely used in hardware. The handbook explains why, on their own, they are insecure: their structure is linear, and given a modest amount of output an attacker can reconstruct the whole register using an algorithm due to Berlekamp and Massey. The measure of how hard a sequence is to reconstruct in this way is called its linear complexity. The book then shows the many ways designers tried to break linearity, through nonlinear combining functions, filters and irregular clocking, and the attacks that followed each attempt.
For block ciphers, the centrepiece is DES, the Data Encryption Standard, which had been the dominant cipher for two decades. The book describes it fully, along with other designs of the time, and explains the main tools for analysing block ciphers, especially differential and linear cryptanalysis, which had been developed in the years just before the handbook appeared. It also discusses the obvious weakness of DES, its short key, and ways to extend it, such as applying it three times with different keys.
The treatment of modes of operation is especially valuable. A block cipher alone only encrypts one block. How blocks are chained matters a great deal. The simplest mode, which encrypts each block independently, leaks patterns: identical plaintext blocks produce identical ciphertext blocks, so the shape of the data shows through. Chained and counter-based modes hide such patterns but bring their own requirements, such as unique initial values. The handbook sets out these modes and their properties clearly. What it does not have, because it came later, is the modern family of authenticated encryption modes that provide confidentiality and integrity together.
The honest limit the handbook draws is this: no practical symmetric cipher is proven secure. Confidence comes from years of public analysis without a practical break. The book contrasts this with the one-time pad, which is provably secure in an information-theoretic sense but requires a truly random key as long as the message, used only once. Everything between those extremes is a matter of informed trust. That framing remains correct. The Advanced Encryption Standard, chosen after an open competition a few years after the handbook appeared, earned its trust the same way.
A modern reader can treat these chapters as a lesson in method rather than a list of recommended ciphers. The specific designs have mostly been retired. The habits remain: assume the attacker knows the algorithm, measure security by the best known attack, beware of linearity and structure, and never use a cipher in a mode whose requirements are not met.
Idea five: hashes, MACs and signatures do different jobs
The handbook's chapter on hash functions and data integrity, and its chapter on digital signatures, together make one of its most useful contributions: a clear separation of tools that are often treated as interchangeable. A hash function compresses data of any length into a short fixed-length value. A message authentication code, or MAC, uses a shared secret key to produce a tag that only key holders can create. A digital signature uses a private key to produce a value that anyone with the matching public key can verify.
The book first defines what a cryptographic hash function should achieve. Preimage resistance means that given an output, it is hard to find any input that produces it. Second-preimage resistance means that given one input, it is hard to find a different input with the same output. Collision resistance means it is hard to find any two inputs with the same output at all. These properties are related but not identical, and different applications need different ones. A password store relies mainly on preimage resistance. A signature scheme that signs the hash of a document relies on collision resistance, because a forger who can find two documents with the same hash can get one signed and claim the other.
The handbook explains why collision resistance is the hardest property to achieve. Because of the birthday paradox, collisions in an output of n bits can be found with about two to the power n over two attempts, far fewer than the two to the power n needed for a preimage. This is why hash outputs must be roughly twice as long as the security level one wants. The book presents this as a basic fact of design, and it remains one.
The hash functions the book describes in detail are of the MD4 family, including MD5, SHA-1 and RIPEMD-160. The handbook already notes weaknesses in MD4 and doubts about MD5. Later research found practical collisions in MD5 and then in SHA-1, and both are now retired for security uses. Readers should take the chapter's structure and definitions as current, and its specific algorithm recommendations as historical.
With MACs, the key point is that a shared key gives authentication only between those who share it. If Alice and Bob share a MAC key, Bob can be sure a message came from Alice, but he cannot prove it to anyone else, because he could have produced the tag himself. That is why MACs do not provide non-repudiation. Signatures do, because only the holder of the private key can sign. The handbook's careful table-like comparison of these properties is something every system designer should internalise.
An everyday analogy: a hash is like a fingerprint of a document, which anyone can take; a MAC is like a wax seal pressed with a ring that two partners both own; a signature is like a seal whose pattern anyone can check against a public register, but which only one person can press. Each has its place. Confusing them leads to systems that look secure and are not.
For a reader interested in blockchains, this chapter is close to the heart of the subject. Blocks are linked by hashes, transactions are authorised by signatures, and the security of the whole depends on collision resistance and unforgeability holding at once. Merkle trees, which let one prove that a single item belongs to a large set by revealing only a short path of hashes, are described in the handbook in the context of authentication. Their later use in ledgers is a direct application.
Idea six: protocols fail in the joints
A primitive can be perfectly sound and the system built from it still broken. The handbook's chapters on identification and on key establishment are, in effect, a long demonstration of this. They describe how parties prove who they are to each other, and how they come to share a fresh secret key, and they record the many ways such protocols have failed.
For identification, the book moves from weak methods to strong ones. Passwords are the weakest: they are often guessable and are revealed whenever they are used. One-time passwords improve matters. Challenge-response protocols are stronger still: the verifier sends a fresh random challenge and the claimant answers in a way that requires a secret, without revealing it. Beyond these, the handbook presents zero-knowledge identification schemes, such as those of Fiat and Shamir and of Schnorr, in which a prover convinces a verifier that they know a secret while revealing nothing about the secret itself.
For key establishment, the book distinguishes key transport, where one party chooses a key and sends it securely to another, from key agreement, where both parties contribute and the key emerges from their exchange, as in Diffie-Hellman. It describes protocols that use a trusted server, such as the Needham-Schroeder family and Kerberos, and protocols that use public keys and signatures, such as the station-to-station protocol, which adds authentication to Diffie-Hellman.
The repeated lesson is that the dangerous places are the joints between messages. Many attacks do not break any primitive. They replay an old message in a new context, interleave two sessions so that one party unknowingly answers the attacker's question, or exploit the fact that a message does not say who it is for. A classic example is the man-in-the-middle attack on unauthenticated Diffie-Hellman: the attacker sits between the two parties and agrees one key with each, reading and relaying everything. The mathematics is untouched. The protocol simply never checked identities.
The handbook also gives names to the properties a key establishment protocol should have: key freshness, so that old keys cannot be forced back into use; implicit and explicit key authentication, so that each party knows who else could have the key; and forward secrecy, so that compromise of a long-term key does not reveal past session keys. These names give designers a checklist. Modern secure transport protocols are judged against very similar lists.
For practitioners, the most valuable habit here is suspicion of small changes. Adding a field, removing a name, or reordering messages to save a round trip has broken many protocols that were sound before. The handbook's catalogue of attacks, read slowly, trains the eye to see where such changes might matter.
Idea seven: keys must be managed, not just generated
The chapter on key management moves from algorithms to organisations. It asks how keys are created, distributed, stored, used, updated, revoked and destroyed over their whole life, and how trust in public keys is established. This is where much of real-world security is won or lost, and the handbook treats it as a technical subject in its own right.
The central problem with public keys is binding. A public key is only useful if one knows whose it is. If an attacker can substitute their own key for Bob's, then everything Alice encrypts to Bob can be read by the attacker, and every signature the attacker makes will be accepted as Bob's. The handbook describes the main approaches to this problem: certificates issued by a trusted authority, which bind a name to a key with a signature; webs of mutual vouching among users; and identity-based systems in which a public key is derived directly from a name.
Certificates bring their own problems, and the book is frank about them. Certificates must expire and sometimes be revoked before they expire, because keys are lost or stolen. Revocation lists must be distributed and checked, and if they are not, revoked keys continue to be trusted. Authorities must themselves be trusted, and a compromised authority can issue false certificates for anyone. These issues were already understood in 1996, and they have remained central to internet security since.
The chapter also covers the separation of keys by purpose. A key used for encryption should not also be used for signing, because a careless design can let an attacker use one function to undermine the other. Keys should have limited lifetimes, so that the damage from a compromise is bounded. Long-term keys should be used sparingly and mainly to establish short-term session keys. These are simple principles that are often ignored.
An analogy from ordinary life: a large building has a master key, keys for each floor, and temporary passes for visitors. The master key is kept in a safe and rarely used. Visitor passes expire at the end of the day. When an employee leaves, their key is collected and the lock may be changed. A building that issued one key to everyone, forever, would not be secure however good its locks were. Key management is the discipline of running the building.
For readers interested in digital money, this chapter has an obvious echo. Systems where each user holds their own private key remove the central authority but put the whole burden of key management on the user. Loss means permanent loss; theft means irreversible theft. Much of the later industry around wallets, custody and recovery is an attempt to solve the problems this chapter describes, in a setting where there is deliberately no authority to appeal to.
Idea eight: speed is part of security
The handbook gives a full chapter to efficient implementation, and this is one of the reasons engineers kept it on their desks. Public-key operations involve arithmetic on very large integers, and a naive implementation can be far too slow for real use. A system that is too slow will be bypassed, or used with keys that are too short, or replaced by something weaker. Efficiency is therefore not a luxury.
The chapter covers multiple-precision arithmetic, the techniques for adding, multiplying and dividing numbers much longer than a machine word. It then covers modular reduction, including the methods of Barrett and of Montgomery, which replace expensive division with cheaper operations. Montgomery's method in particular became standard in cryptographic libraries. The chapter also treats exponentiation, the core operation in RSA and Diffie-Hellman, and presents methods such as sliding windows that reduce the number of multiplications needed.
The ideas are elegant and worth understanding even for those who will never write such code. Exponentiation by repeated squaring is a good example. To compute a number raised to a large power, one does not multiply it by itself millions of times. One writes the exponent in binary and builds the result by squaring and occasionally multiplying, so that the work grows with the number of digits of the exponent rather than its size. Every public-key system in use depends on this idea.
Later work added a dimension the handbook only began to touch: side channels. An implementation that takes different amounts of time, or draws different amounts of power, depending on secret bits can leak those bits to an attacker who measures it. Timing attacks were published around the time of the handbook, and later work showed how serious they could be. Modern implementations aim for constant-time code that behaves the same regardless of secret values. A reader using the handbook's algorithms today should treat them as correct descriptions of the arithmetic, not as secure code in themselves.
The chapter also shows how many small choices add up. Representing numbers in a particular radix, precomputing a table of powers, choosing a public exponent with few nonzero bits, using the Chinese remainder theorem to split one large private-key operation into two smaller ones: each saves a modest fraction of the work, and together they can make an operation several times faster. The Chinese remainder trick is a good example of the trade-offs involved. It speeds up RSA decryption and signing considerably, but if a fault occurs during one of the two half-computations, the faulty result can reveal the factors of the modulus. Speed and safety have to be weighed together, and the handbook gives the reader the tools to do so.
This is a useful general warning about the whole book. A precise algorithm is a necessary condition for a secure system, not a sufficient one. The distance between a correct algorithm on paper and a secure implementation in a real device is large, and much of the history of cryptography since 1996 has been about that distance.
Idea nine: public-key encryption is more than a formula
Popular accounts of RSA often present it as a single formula: raise the message to a public exponent modulo a large number, and the holder of the private exponent can undo it. The handbook's chapter on public-key encryption shows why this textbook version is not, by itself, a secure encryption scheme, and what has to be added to make it one.
The problem is that the bare formula is deterministic and has algebraic structure. Deterministic means the same message always encrypts to the same ciphertext. If an attacker suspects a message is one of a small set, such as yes or no, or a salary from a short list, they can encrypt each candidate with the public key and compare. Nothing secret is needed. Algebraic structure means that ciphertexts can be combined in ways that correspond to combining messages. Multiplying two RSA ciphertexts gives the ciphertext of the product of the messages. An attacker can use this to transform a ciphertext they cannot read into a related one, and sometimes to trick a decryption service into revealing the original.
The handbook discusses these weaknesses and the general remedy: before encryption, the message is formatted with redundancy and randomness, a process usually called padding. Random padding makes encryption probabilistic, so the same message encrypts differently each time. Redundancy lets the receiver detect ciphertexts that have been tampered with. The design of good padding turned out to be subtle. Shortly after the handbook appeared, a practical attack showed that a widely used padding format could be broken by an attacker who learned only whether each submitted ciphertext decrypted to a correctly formatted message. Schemes with stronger, provable properties were designed and standardised in response.
The chapter also presents other public-key systems that make the same point in different ways. The Rabin system has a security proof tied directly to factoring, but its decryption gives four possible answers that must be disambiguated. The ElGamal system, based on discrete logarithms, is randomised by design, which removes the determinism problem but doubles the size of ciphertexts. Knapsack-based systems, popular in the early years of public-key research, were broken one after another, and the handbook records that history as a warning. The McEliece system, based on error-correcting codes, was then a curiosity because of its huge keys; it has since returned to attention as a candidate that may resist quantum computers.
An analogy: the bare RSA formula is like a lock mechanism lying on a workbench. It works, and the mathematics is sound, but it is not yet a door. The door needs a frame, hinges and a strike plate. Padding, randomisation and careful formatting are the frame around the mechanism. Many real failures came from installing a good mechanism in a bad frame.
The wider lesson is one the handbook repeats in many places. Security belongs to a complete scheme used in a specific way, not to a mathematical operation in isolation. When a book or article says that something is secured by RSA, or by elliptic curves, the right response is to ask which scheme, with which formatting, against which attacker. Public-key cryptography is also slow compared with symmetric ciphers, so in practice it is mostly used to transport or agree on a symmetric key, which then does the bulk work. The handbook explains this hybrid arrangement, which is still how almost every secure connection operates.
Idea ten: standards and patents shape the field
The handbook closes with a chapter on patents and standards. It is the least read part of the book today, but it carries an idea that is easy to forget: which cryptography gets used depends not only on what is secure and efficient, but on who owns it, who has approved it, and who has to agree to use it.
In the 1980s and 1990s several of the most important public-key techniques were patented in the United States. RSA was patented, and the patent did not expire until 2000. Diffie-Hellman key agreement and related methods were also covered for a time. Licensing terms affected which algorithms appeared in products, which were adopted in free software, and which standards bodies would accept. The digital signature standard chosen by the United States government in the early 1990s was influenced by a wish to have a scheme that could be used without the RSA licence, among other reasons. The handbook records this landscape factually.
Standards matter for a different reason. Cryptography only works if both ends agree on every detail: the algorithm, the key size, the encoding, the padding, the order of bytes. A standard fixes those details so that independently built systems can talk to each other. It also concentrates trust, because a weakness in a standard is copied into every product that follows it. Later events, including the discovery that at least one standardised random number generator appeared to contain a deliberate weakness, showed how much rides on the integrity of standards processes.
For a modern reader the specific patents and standards in this chapter are history. Most of the patents have expired, and many of the standards have been replaced. But the idea remains current. Elliptic curve cryptography was slowed in its adoption for years partly by patent uncertainty. The choice of curves and hash functions in digital money systems was shaped by which options were open, well studied and free to use. Post-quantum algorithms are now going through a public standardisation process whose outcome will shape the next generation of systems.
The lesson is to read cryptographic choices as the outcome of technical, legal and institutional forces together. When a system uses a particular algorithm, it is worth asking why that one: because it was the best, because it was standard, because it was free, or because it was what the designers already knew. The handbook's final chapter is a reminder that security engineering happens inside an economy and a legal order, not only inside mathematics.
The tradition around it
The handbook answers a need that had grown over the previous two decades. Public-key cryptography was published in 1976 by Diffie and Hellman, and RSA followed shortly after. Through the 1980s and early 1990s the academic field expanded quickly, with annual conferences and a large and scattered literature. At the same time, cryptographic standards for banking and government were being written, and products were being built. There were textbooks and survey articles, but no single, careful reference that brought the definitions, algorithms and attacks together.
Its nearest companion in time is Bruce Schneier's Applied Cryptography, which sits in this bay and appeared in its second edition in the same year. The two books are often compared. Schneier's is more readable and broader in its coverage of protocols, politics and practical choices, and it was written for programmers who wanted to get started. The handbook is more precise, more mathematical, and more conservative in its claims. Many practitioners kept both: Schneier to get oriented, the handbook to check exactly what was true.
Neal Koblitz's A Course in Number Theory and Cryptography, also in this bay, covers some of the same mathematical ground at a more introductory level and is a good preparation for the handbook's harder chapters. Behind all of these stands the long historical tradition described in David Kahn's The Codebreakers and Simon Singh's The Code Book, which show how the problems the handbook formalises arose in practice over centuries.
After the handbook, the teaching of cryptography changed. Katz and Lindell's Introduction to Modern Cryptography, in this bay, represents the newer style, in which every primitive is given a formal security definition in terms of an attacker's advantage in a game, and schemes are proved secure by reduction to assumptions. Where the handbook describes, that book proves. Readers will find the two complementary: the handbook gives breadth and practical detail, the newer text gives rigour. Jean-Philippe Aumasson's Serious Cryptography offers a modern practical survey that covers what the handbook could not, such as current authenticated encryption and modern hash functions. Ferguson, Schneier and Kohno's Cryptography Engineering focuses on turning primitives into working systems.
The blockchain books in this bay rest on the handbook's foundations. Bitcoin uses hash functions, Merkle trees and elliptic curve signatures, all of which the handbook defines or prepares the ground for. Narayanan and colleagues' Bitcoin and Cryptocurrency Technologies begins with a chapter on exactly these primitives. Antonopoulos's Mastering Bitcoin and Mastering Ethereum explain how keys, addresses and signatures are used in those systems. A reader who has worked through the handbook's chapters on hashes, signatures and key management will find those books much easier to follow, and will be better able to judge their claims.
Questions and criticisms
The most obvious criticism is age. The handbook predates the Advanced Encryption Standard, the SHA-2 and SHA-3 families, modern authenticated encryption, widely deployed elliptic curve protocols, and post-quantum cryptography. Several algorithms it describes in detail have since been broken or retired, including MD5 and SHA-1 for collision resistance, and DES is now far too weak. A reader who took its algorithm choices as current advice would make serious mistakes. Its structure, definitions and methods have aged much better than its specific recommendations.
A second criticism concerns rigour. By the standards of later theoretical cryptography, the handbook's security notions are often informal. It states what a primitive should achieve, but it rarely gives the precise definitions and proofs that are now standard. This was a deliberate choice for a practitioner's reference, and it makes the book easier to use. But readers who want to know exactly what it means for an encryption scheme to be secure should supplement it with a modern text.
A third point is scope. The handbook concentrates on primitives and protocols, and gives relatively little attention to the wider engineering and human context: user behaviour, operational security, software bugs, organisational failure. Much of the real damage in security comes from those areas. This is not a flaw in the book's execution, but readers should not mistake its scope for the whole of security.
Some readers find the format difficult. The strict numbering and dense layout make the book excellent for lookup and tiring for continuous reading. The overview chapter is the exception and reads well on its own. Others note the uneven depth: some topics receive pages of detailed algorithms, others a short remark. That unevenness partly reflects what was well understood in 1996.
What has held up? The separation of security goals, the attention to attacker models, the treatment of hard problems and their best attacks, the analysis of protocol failures, the principles of key management, and the core arithmetic algorithms. These are the parts that remain useful decades later. The chapter notes also remain valuable as a guide to the literature up to the mid-1990s. Later work changed the specific tools and added formal proof as the standard of argument, but it did not overturn the handbook's basic picture of the field.
Why it is on this shelf
This shelf gathers books that teach precise thinking in different domains: Vedanta about the self, Jyotish about time and pattern, science about nature, economics about exchange, and technology about the systems people build. The handbook belongs here as the precise reference for the building blocks of digital trust. It does not tell a story or argue a thesis. It defines terms and states what is known.
For the cryptography and blockchain bay, it plays a particular role. Most books in the bay explain, narrate or argue. This one is where a claim can be checked. When a book on digital money says that a signature cannot be forged or that a hash links one block to the next, the handbook shows what properties those statements depend on and where they could fail. We keep it for that reason.
It also models a temperament that runs through the whole shelf: patience with definitions, honesty about assumptions, and a refusal to claim more than the evidence supports. Those habits are as useful in reading a philosophical argument or an economic forecast as in reviewing a protocol. The handbook is old, and its specific algorithms belong partly to history. Its way of thinking does not.
There is one more reason to keep it close. Much writing about digital money moves quickly from a technical fact to a social or economic conclusion. A signature cannot be forged, therefore no one can seize the asset; a hash chain cannot be altered, therefore history is permanent. The handbook helps separate the technical premise from the leap that follows. It shows exactly what a signature or a hash guarantees, under which assumptions, and so makes it easier to see where the argument stops being cryptography and starts being something else. Read alongside the economic and political books in this bay, it acts as a quiet check on enthusiasm.
How to read it
Begin with the overview chapter and read it straight through. It is written for a general technical reader, introduces nearly all the vocabulary of the field, and gives a map of everything that follows. Take notes on the definitions of the security goals and on the classification of attacks. Most readers will need two or three sittings.
Next, skim the mathematical background chapter without trying to master it. Note what is there: probability, complexity, number theory, finite fields. Return to particular sections when later chapters refer to them. Readers who find this chapter too steep may first work through the early chapters of Koblitz's book in this bay.
Then choose a path. For readers interested in blockchains and digital money, read the chapters on hash functions and data integrity, on digital signatures, and on key management, in that order. Then read the chapter on number-theoretic reference problems, which explains why signatures are believed to be hard to forge. For readers interested in secure communication, read the chapters on block ciphers, on identification, and on key establishment.
Work through at least a few algorithms with pencil and paper. Good candidates are fast modular exponentiation, the extended Euclidean algorithm, and a small RSA example with toy numbers. Compute every step by hand. This takes time but builds an understanding that reading alone does not. Do the same with one key establishment protocol: draw the messages between the parties and then try to attack it as a man in the middle.
On a first pass, skip the detailed descriptions of retired ciphers and hash functions, the deep sections on stream cipher constructions, and the chapter on patents and standards, which is now mostly historical. Return to them only for specific needs. Read the chapter notes for any chapter you study closely; they are often the best part.
A sensible pace is one chapter every week or two for the chapters you choose to study, with a notebook for definitions in your own words. Rewriting each definition without looking, then checking it against the book, is the fastest way to find what you have not yet understood.
Keep a modern source open beside the handbook to correct for age. Aumasson's Serious Cryptography is good for this. After the handbook, read Katz and Lindell's Introduction to Modern Cryptography for formal definitions and proofs, and Ferguson, Schneier and Kohno's Cryptography Engineering for system design. Then read Narayanan and colleagues' Bitcoin and Cryptocurrency Technologies to see these primitives assembled into a working digital currency.
Questions to carry
- For any system you use, which of the four goals, confidentiality, integrity, authentication and non-repudiation, does it actually provide?
- What powers does the attacker have in the model a security claim assumes, and are those the powers a real attacker has?
- Why does a MAC not provide non-repudiation, while a signature does?
- Which hash function property, preimage, second-preimage or collision resistance, does a given application really depend on?
- Why must hash outputs be about twice as long as the target security level?
- How does the best known attack on a hard problem determine the key sizes used with it?
- Why can elliptic curve keys be shorter than RSA keys for similar security?
- Where does the randomness in a system come from, and what happens if it fails?
- In a key establishment protocol, how does each party know who else could hold the key?
- What changes when a protocol message omits the name of its intended recipient?
- How is a public key bound to an identity, and what happens when that binding fails?
- What would a large quantum computer break, and what would it leave standing?
- Why is a correct algorithm on paper not yet a secure implementation?
- Which parts of this book have aged, and how can you tell from the text itself?
Words to know
- Primitive: a basic cryptographic tool, such as a cipher, hash function or signature scheme, from which larger systems are built.
- Confidentiality: the goal of keeping information from anyone not authorised to see it.
- Data integrity: the goal of detecting any unauthorised change to data.
- Authentication: assurance about the identity of a party or the origin of data.
- Non-repudiation: protection against a party later denying an action they took, such as signing a message.
- Symmetric key: a system in which sender and receiver share the same secret key.
- Public-key cryptography: a system in which each party has a public key that can be shared and a private key that is kept secret.
- Block cipher: a cipher that transforms fixed-size blocks of data under a key.
- Mode of operation: a rule for using a block cipher to process messages longer than one block.
- Stream cipher: a cipher that combines the message with a keystream generated from a key.
- Linear feedback shift register: a simple circuit that produces long sequences from a short state, insecure on its own because of its linearity.
- Hash function: a function that maps data of any length to a short fixed-length value.
- Collision resistance: the property that it is hard to find two inputs with the same hash output.
- Message authentication code: a short tag computed from a message and a shared secret key, used to check integrity and origin.
- Digital signature: a value computed with a private key that anyone can verify with the matching public key.
- Integer factorisation problem: the problem of finding the prime factors of a large composite number.
- Discrete logarithm problem: the problem of finding an exponent given a base and the result of the exponentiation in a group.
- Pseudorandom generator: an algorithm that stretches a short random seed into a long sequence that appears random.
- Challenge-response: an identification method in which the verifier sends a fresh challenge and the claimant answers using a secret.
- Zero-knowledge protocol: a protocol in which a prover convinces a verifier of a claim without revealing anything beyond its truth.
- Key agreement: a protocol in which two or more parties jointly derive a shared secret key.
- Forward secrecy: the property that compromise of a long-term key does not reveal past session keys.
- Certificate: a signed statement by an authority binding a public key to an identity.
- Merkle tree: a tree of hashes that allows efficient proof that an item belongs to a set.
- Side channel: information leaked by an implementation through timing, power use or similar physical effects.
A note on this edition
This is a study edition written for this shelf in our own words. It describes and comments on the Handbook of Applied Cryptography but does not reproduce its text, algorithms or examples. The book itself is in copyright. Its publisher has allowed the chapters to be downloaded for personal use, and it is also worth getting from a library or bookshop. Where this edition is general or cautious, that is deliberate: the details belong in the original.