About this book
Introduction to Modern Cryptography is a university textbook by Jonathan Katz and Yehuda Lindell. The first edition was published in 2007 by Chapman and Hall, an imprint of CRC Press, in a series on cryptography and network security. A second edition followed in 2014 and a third in 2020. Each revision reorganised and extended the material, but the core approach stayed the same.
The book was written for a specific gap. By the early 2000s, cryptography had become a mature mathematical science. Researchers had spent two decades learning how to define security precisely and how to prove that schemes meet their definitions. That work was spread across research papers and across advanced books such as Oded Goldreich's two-volume Foundations of Cryptography, which is rigorous but demanding. On the other side were practical books that described algorithms and protocols with little attention to what security actually means. Students who wanted to learn the modern, rigorous view in a form suitable for a first course had few options. Katz and Lindell set out to write that course.
The question the book sets out to answer is this: what does it mean for a cryptographic scheme to be secure, and how can we come to believe that a particular scheme is secure? The answer it gives is the method of modern cryptography. Write down a precise definition of security. State clearly the assumptions on which the scheme relies. Then prove, by careful argument, that if the assumptions hold, the scheme meets the definition. Everything in the book serves this method. The particular algorithms it covers are less important than the habit of thought it teaches.
The intended readers are advanced undergraduates and beginning graduate students in computer science and mathematics, and practitioners willing to work. The prerequisites are modest on paper: comfort with proofs, basic probability, some discrete mathematics, and an idea of what an efficient algorithm is. The number theory needed is developed in the book itself. In practice the book asks for more than its prerequisites suggest, because the reasoning is unfamiliar. A reader who has only used cryptography as a set of tools will find the shift to definitions and proofs a real change of mind.
This study edition is a companion to the textbook. It explains the ideas, the method and the reasons behind them in plain prose, with examples of our own. It does not reproduce definitions, theorems, proofs or exercises from the book, and it is not a substitute for working through them. Its aim is to make the textbook easier to enter and to help a reader see the shape of the whole.
The authors
Jonathan Katz is an American computer scientist who spent much of his career as a professor at the University of Maryland, where he also directed a cybersecurity centre. He earned his doctorate at Columbia University. His research covers the foundations of cryptography and its applications: public-key encryption, digital signatures, protocols for authenticated key exchange based on passwords, secure computation, and more recently post-quantum cryptography. He has also written a monograph on digital signatures and taught a widely followed online course in cryptography. His teaching experience shows in the book's patient explanations and in the order in which ideas are introduced.
Yehuda Lindell is an Israeli computer scientist who was a professor at Bar-Ilan University. He received his doctorate from the Weizmann Institute of Science, a centre of theoretical cryptography in the tradition of Oded Goldreich and Shafi Goldwasser. His research is best known in secure multiparty computation, the study of how several parties can jointly compute a function of their private inputs without revealing those inputs to one another. With Carmit Hazay he wrote a book on efficient secure two-party protocols. Lindell also moved into industry, co-founding a company that applied multiparty computation to protecting cryptographic keys, and he has worked on the security of digital asset custody. That combination of deep theory and practical deployment is visible in the textbook, which repeatedly connects formal results to how schemes are actually used.
Together the authors bring a particular stance. Both were trained in the theoretical school that built modern cryptography on complexity theory. Both care about real systems. The book is written to persuade practitioners that rigour is not an academic luxury but the only reliable defence against designs that look secure and are not. The authors say this plainly at the start, and the rest of the book argues it by example.
The shape of the argument
The book is a textbook, and its organisation follows teaching logic, not narrative. It helps to see it as four large movements, each building on the last.
First: the method and its foundations
The book opens by explaining what modern cryptography is and how it differs from the older art of designing ciphers. It uses historical ciphers to show how intuitive designs fail, and it introduces the principles that will govern everything else. It then studies the strongest possible notion of secrecy, in which an attacker with unlimited computing power learns nothing. This notion is achievable, but only at a cost that makes it impractical in most settings. The limits of perfect secrecy motivate the central move of the book: the switch to security against attackers with bounded resources.
Second: the private-key world
The second movement builds private-key cryptography, where sender and receiver share a secret key. It defines secure encryption against attackers of increasing power, introduces the building blocks that make such encryption possible, and constructs schemes from them with proofs. It then turns to integrity: how to detect that a message has been altered. It treats hash functions and their properties, and it explains how to combine secrecy and integrity safely. Alongside this theory it describes the practical primitives used in the real world, such as block ciphers and stream ciphers, and explains how they relate to the idealised objects in the proofs.
Third: the theory beneath
A shorter, more theoretical movement asks what minimal assumption private-key cryptography actually needs. It shows that the existence of one-way functions, functions that are easy to compute and hard to invert, is enough to build much of what came before. This part is the most abstract in the book. In the later editions it was placed after the practical material, so that readers who need the applied content can reach it first.
Fourth: the public-key world
The final movement develops the number theory needed for public-key cryptography and introduces the hard problems on which it rests: factoring, discrete logarithms and related problems in groups, including groups built from elliptic curves. It then treats key exchange, public-key encryption and digital signatures, again with definitions and proofs, and it discusses the random oracle model, a common but debated idealisation used to analyse practical schemes. It ends by connecting these tools to the infrastructure in which they are deployed.
The thread through all four
What ties the four movements together is a single pattern repeated many times. A security goal is stated as a game between an attacker and a challenger. A construction is offered. A proof shows that any attacker who wins the game with noticeable advantage could be turned into an algorithm that solves a problem assumed to be hard. The book teaches this pattern until it becomes natural. A reader who finishes it should be able to look at a new scheme and ask the right three questions: what is the definition, what is the assumption, and where is the proof.
Key idea one: definitions before designs
The first lesson of the book, and perhaps the most important, is that you cannot say whether something is secure until you have said what secure means. This sounds obvious. In practice it was not how cryptography was done for most of its history.
For centuries, cipher design worked by intuition and attack. A designer invented a scheme. Others tried to break it. If it survived long enough, people trusted it. This produced some strong ciphers and many weak ones, and it left no clear way to tell them apart in advance. The trouble is that a vague goal, such as keeping the message secret, admits many interpretations. Must the attacker be unable to recover the whole message, or any single letter, or any information at all? Does the attacker see one ciphertext or many? Can the attacker choose some of the messages that get encrypted? Can the attacker submit ciphertexts and see what they decrypt to? Each answer gives a different definition, and a scheme can be secure under one and broken under another.
A modern definition has two parts. The first is a threat model: what the attacker is allowed to do. The second is a security goal: what counts as success for the attacker. Only when both are fixed does the question of security have a meaning.
An everyday analogy helps. Saying a lock is secure means little until you say against whom and for how long. A lock that keeps out a curious neighbour for a few seconds may fail against a locksmith with an hour. A proper rating for a safe specifies the tools the attacker may use and the time it must resist. Cryptographic definitions do the same, but with mathematical precision.
The book insists that definitions should be strong enough to cover the real world. A good definition is conservative. It assumes the attacker is clever and gives the attacker a lot of power. It asks that the attacker learn nothing useful, not merely that the attacker fail to recover the key. Many historical failures came from schemes that protected the key but leaked other information. A system that never reveals the key but lets the attacker learn the first word of each message is not secure in any useful sense.
This idea is often confused with formalism for its own sake. The point is practical. When a scheme is deployed, the people using it rely on some implicit idea of what it guarantees. If that idea is not written down, nobody can check whether the scheme delivers it, and users will be surprised when it does not. A precise definition is a contract. It tells designers what to build and users what to expect.
Key idea two: assumptions, stated openly
The second principle of the book is that almost every useful cryptographic scheme rests on an assumption that cannot currently be proved. This is not a weakness to hide. It is a fact to state clearly.
The reason is deep. Proving that a practical encryption scheme is secure against all efficient attackers would, in most cases, require resolving open problems in computational complexity theory, including questions closely related to whether P equals NP. Nobody can do that today. So cryptographers do the next best thing. They identify a small number of precise problems that are believed to be hard, such as factoring the product of two large random primes or computing discrete logarithms in certain groups. They then build schemes whose security depends only on those problems.
Stating the assumption has several benefits that the book explains. It makes the basis of trust visible. Instead of trusting a complicated scheme as a whole, we trust a simple, well-studied mathematical problem that many people have tried to solve. It makes comparison possible: a scheme resting on a weaker, more widely believed assumption is preferable to one resting on a strong, unusual assumption. And it makes failure traceable. If an assumption falls, we know exactly which schemes are affected.
The history of the field gives a reason for caution about new assumptions. Some proposed hard problems were broken within a few years of being introduced. Others, like factoring, have resisted serious attack for decades, although the size of numbers that can be factored has grown steadily as algorithms and computers improve. A good habit, which the book encourages, is to prefer assumptions that have been studied for a long time by many independent researchers.
There is a further layer. Some assumptions are about mathematical problems, like factoring. Others are about concrete primitives, such as the assumption that a particular block cipher behaves like a random permutation. The second kind is more practical and less satisfying. The book treats both but is clear about the difference. When we assume that a real cipher like AES behaves like an ideal object, we are trusting the years of public analysis behind it, not a clean mathematical problem.
A frequent misunderstanding is to think that a scheme with a proof is unconditionally secure. It is not. A proof says: if this assumption holds, then the scheme is secure in this sense. Both conditions matter. The proof is only as good as the assumption, and only as relevant as the definition.
Key idea three: proofs by reduction
The third principle connects the first two. Once there is a definition and an assumption, a proof of security shows that the scheme satisfies the definition whenever the assumption holds. Most such proofs take the form of a reduction.
A reduction works by contradiction, in an algorithmic form. Suppose someone claims to have an efficient attacker that breaks the scheme. The proof shows how to use that attacker as a subroutine inside a new algorithm that solves the hard problem. Since we believe the hard problem cannot be solved efficiently, such an attacker cannot exist. The scheme is therefore secure, relative to the assumption.
An analogy may help. Imagine a vault whose combination is computed from the answer to a famously unsolved puzzle. If someone could open the vault quickly, you could watch them do it and read off the puzzle's answer. Since the puzzle has resisted every expert for decades, you conclude that nobody can open the vault quickly. A cryptographic reduction is a precise version of this argument, in which the watching is done by an algorithm that simulates the attacker's world and extracts what it needs.
The book teaches how to write such proofs carefully, and this is where much of its difficulty lies. A reduction must simulate the attacker's environment faithfully, so that the attacker behaves as it would against the real scheme. It must account for the probability of success at each step. It must run in reasonable time. Small mistakes in these details have produced flawed proofs in published papers. The book's careful style is partly a response to that history.
A related technique, the hybrid argument, appears often. To show that two situations look the same to an attacker, one builds a chain of intermediate situations, each differing from the next in one small way, and shows that the attacker cannot tell any adjacent pair apart. The total difference is then bounded by the sum of the small differences. It is like proving that two photographs are indistinguishable by showing a sequence of images between them, each changing one pixel too faintly to notice.
Why does this matter beyond the classroom? Because proofs change where designers look for weaknesses. A scheme with a sound reduction can only fail if the assumption fails, the definition was wrong for the application, or the implementation deviates from the specification. That narrows the search enormously. Without a proof, a weakness could be anywhere.
Key idea four: perfect secrecy and its price
Early in the book the authors study the strongest form of secrecy: an encryption scheme is perfectly secret if the ciphertext reveals absolutely nothing about the message, even to an attacker with unlimited time and computing power. This idea comes from Claude Shannon's work in the late 1940s.
The classic example is the one-time pad. Write the message as a string of bits. Choose a key that is a string of random bits of the same length. Combine them bit by bit with exclusive-or, which flips each message bit wherever the key bit is one. The result is ciphertext. Because every possible key is equally likely, every possible message of that length is equally consistent with the ciphertext. The attacker gains nothing, no matter how clever.
The book proves what this costs. Any perfectly secret scheme needs at least as many possible keys as possible messages. In practice that means the key must be as long as the message, must be truly random, and must never be reused. Reusing a one-time pad key even once can be disastrous. If two messages are encrypted with the same key, combining the two ciphertexts cancels the key and leaves a combination of the two messages, which can often be unpicked. A well-known case from the Cold War, in which Soviet one-time pads were reused, allowed Western analysts to read parts of many messages over years.
The point of studying perfect secrecy is not to recommend it. It is to show that perfect security is incompatible with short keys, and so any practical system must accept a weaker notion. That realisation leads to computational security, the subject of the next key idea. It also offers a benchmark. When we relax perfect secrecy, we should relax it as little as possible and in a way we can describe precisely.
A common confusion is to treat the one-time pad as a magical cipher that solves secrecy. It solves secrecy only by moving the problem to key distribution. If you can deliver a truly random key as long as all your future messages, safely and in advance, you could often have delivered the messages themselves the same way. The one-time pad has real uses in very specific settings, but it does not remove the need for the rest of cryptography.
Key idea five: computational security
If perfect secrecy is too expensive, the alternative is to accept that an attacker with infinite resources could break the scheme, while ensuring that no attacker with realistic resources can. This is computational security, and it is the foundation on which nearly all modern cryptography stands.
The book describes two ways to make this precise. In the concrete approach, one says a scheme is secure if no attacker running for at most some number of steps can succeed with probability greater than some small number. For example, one might ask that no attacker using fewer than two to the power eighty operations succeeds with probability above two to the power minus sixty. The numbers give a direct sense of how secure the scheme is.
In the asymptotic approach, which is cleaner for proofs, the scheme has a security parameter, roughly the key length. Efficient attackers are those whose running time grows at most polynomially with this parameter. A success probability is negligible if it shrinks faster than one over any polynomial. A scheme is secure if every efficient attacker succeeds with only negligible probability. This approach hides constants and specific numbers, but it makes the theory compose neatly: an efficient algorithm that calls another efficient algorithm is still efficient, and a polynomial number of negligible chances adds up to something still negligible.
Both approaches capture two relaxations of perfect secrecy. The attacker is limited in time, and the attacker is allowed a tiny probability of success. Both relaxations are necessary. With unlimited time, an attacker can try every key. With no allowance for luck, an attacker who guesses the key at random would count as a success, however unlikely the guess.
An image from everyday life is a combination lock with a very large number of settings. It is not impossible to open by trying every combination, and a lucky first guess could open it. But the lock is secure in practice if trying every combination would take longer than the useful life of what is inside and the chance of a lucky guess is smaller than other risks we accept without thought. Computational security asks for that kind of margin, measured precisely.
The book is careful about what this relaxation changes. Security is now relative to computing power, which grows. Key sizes that were safe in one decade may not be safe in the next. And security is relative to the best known algorithms, which improve. A sound computational definition does not freeze these numbers. It tells you what the scheme guarantees in terms of them, so that you can choose parameters sensibly for your time.
Key idea six: indistinguishability and attack models
With computational security in hand, the book defines what it means for encryption to hide a message. The central notion is indistinguishability. The attacker chooses two messages of the same length. One is picked at random and encrypted. The attacker sees the ciphertext and must guess which message was encrypted. The scheme is secure if no efficient attacker can guess correctly with probability noticeably better than one half.
This game may look narrow, but it is strong. If an attacker could learn any useful property of the message from the ciphertext, such as its first letter or whether it contains a certain word, the attacker could pick two messages that differ in that property and win the game. So indistinguishability rules out learning anything about the message, beyond its length, that would help the attacker. The book shows that this definition is equivalent to a more intuitive notion, sometimes called semantic security, which says that the ciphertext gives no help in computing any function of the message.
The definition is then extended along a ladder of attack models. In the weakest, the attacker sees a single ciphertext and nothing more. In the chosen-plaintext attack model, the attacker can also ask for encryptions of messages of its own choosing. This captures real situations: an attacker who can cause a system to encrypt known data, for instance by sending an email that will be stored encrypted, has this power. In the chosen-ciphertext attack model, the attacker can also submit ciphertexts of its own and learn how they decrypt, apart from the challenge itself. This captures systems that respond differently to valid and invalid messages, which turns out to be very common.
Two consequences of this ladder are among the most useful lessons in the book. The first is that security against chosen-plaintext attacks requires encryption to be randomised or to keep state. If encrypting the same message always gives the same ciphertext, the attacker can encrypt a guess and compare. So a secure scheme must produce different ciphertexts for the same message each time, using fresh randomness. This is why real modes of operation use initialisation vectors or nonces.
The second lesson is that chosen-ciphertext attacks are a real threat, not a theorist's fantasy. Systems that decrypt messages and report whether the result was well formed have been broken by attackers who sent many modified ciphertexts and watched the responses. Well-known attacks on padding in block cipher modes and on early RSA encryption padding worked exactly this way. The book uses such examples to show why the strongest definition is the right default for most applications.
A misreading to avoid is that these definitions are about hiding the key. They are about hiding the message. A scheme can keep its key perfectly safe and still leak enough about messages to be useless.
Key idea seven: pseudorandomness
If the one-time pad needs a key as long as the message, and we want short keys, the natural thought is to stretch a short random key into a long string that looks random and use that as a pad. This is the idea of a pseudorandom generator. The book makes the idea exact and then builds a family of related objects on it.
A pseudorandom generator takes a short random seed and outputs a much longer string. It is secure if no efficient algorithm can tell its output apart from a truly random string of the same length with noticeable advantage. Note what this does and does not say. The output is certainly not random in the mathematical sense, since there are far fewer possible outputs than random strings. But to any observer with limited computing power, the difference is invisible. Randomness, in this view, is in the eye of the beholder, and the beholder is assumed to be efficient.
With a pseudorandom generator, one can build an encryption scheme that is computationally secure and uses a key much shorter than the message: expand the key and use the output as a pad. The proof is a clean example of a reduction. If an attacker could tell which message was encrypted, one could use the attacker to tell pseudorandom output apart from true randomness, contradicting the assumption. Stream ciphers used in practice follow this pattern.
The book then introduces pseudorandom functions and pseudorandom permutations. A pseudorandom function is a keyed function that, to anyone without the key, cannot be distinguished from a function chosen completely at random from all functions with the same input and output sizes. A useful picture is a vast lookup table in which every entry was filled by coin flips. Nobody could store such a table, but a pseudorandom function behaves, to an efficient observer, as if it were one. A pseudorandom permutation is the same idea for functions that can be inverted, mapping each input to a unique output.
These objects are the theoretical models of real primitives. A block cipher such as AES is designed to behave like a pseudorandom permutation. The book is clear that this is an assumption about AES, supported by years of cryptanalysis, not a theorem. Its value is that once the assumption is stated, one can prove that modes of operation built on top of AES are secure. This separation of concerns is one of the book's practical gifts. Cryptanalysts study whether the block cipher meets its ideal model. Designers of modes then prove security assuming it does.
Much of the private-key part of the book shows how to build secure encryption from pseudorandom functions and permutations. The counter mode, for instance, encrypts by applying a pseudorandom function to successive counter values and using the results as a pad. Its security follows from the pseudorandomness of the underlying function together with the requirement that counter values never repeat under the same key. The book also explains why some modes are insecure under the strong definitions, the classic warning being the mode that encrypts each block independently with no randomness, so that identical blocks of plaintext give identical blocks of ciphertext and patterns show through.
A common confusion is between pseudorandomness and statistical randomness tests. A generator can pass every standard statistical test and still be predictable to someone who knows its structure. Many weak random number generators in real software were of this kind. Cryptographic pseudorandomness asks for more: indistinguishability against any efficient test, including tests designed with full knowledge of the algorithm.
Key idea eight: integrity and authenticated encryption
Secrecy and integrity are different goals, and the book insists on keeping them apart. An encryption scheme can be secure in the sense of hiding messages while allowing an attacker to change them in useful ways. With a stream cipher, for example, flipping a bit of the ciphertext flips the same bit of the plaintext. An attacker who knows the format of a message, such as a payment instruction, might change an amount or an account number without ever learning the rest of the message.
The tool for integrity in the private-key setting is the message authentication code, or MAC. The sender computes a short tag from the message and the shared key. The receiver recomputes the tag and checks that it matches. The security definition is unforgeability: even after seeing tags on many messages of its choice, an efficient attacker cannot produce a valid tag on any new message. The book shows how to build MACs from pseudorandom functions, discusses constructions from block ciphers, and explains how a widely used construction based on hash functions, HMAC, is analysed.
The book then asks how to achieve secrecy and integrity together. This question has a famous history of mistakes. There are three obvious ways to combine encryption and a MAC: compute the tag on the plaintext and send it alongside the ciphertext; compute the tag on the plaintext and encrypt both together; or encrypt first and then compute the tag on the ciphertext. The book explains why the third approach, encrypt-then-authenticate, is secure in general when built from secure components, while the others can fail depending on the details. Several real protocols that used one of the other orders were later attacked.
The resulting notion is authenticated encryption, which guarantees both that the message stays hidden and that any tampering is detected. The book shows that authenticated encryption also gives security against chosen-ciphertext attacks, because an attacker who submits a modified ciphertext simply receives a rejection, which reveals nothing useful. Modern practice has settled on authenticated encryption as the default. Designs such as AES in Galois counter mode and the combination of the ChaCha20 cipher with the Poly1305 authenticator are built as single authenticated encryption schemes.
An everyday picture: encryption is an opaque envelope, and a MAC is a tamper-evident seal. An opaque envelope without a seal can be opened, altered and resealed in a new envelope, and the reader would not know. A seal without an opaque envelope keeps the letter from being changed but lets everyone read it. Most uses need both, and the order in which they are applied matters.
A related point the book makes is that a MAC alone does not stop replay. An attacker can resend an old, validly tagged message. Protecting against this requires sequence numbers, timestamps or other state at a higher layer. Definitions help here too: they make clear exactly what a MAC promises, and so what remains for the protocol designer to handle.
Key idea nine: hash functions and idealised models
A cryptographic hash function takes an input of any length and produces a short fixed-length output, often called a digest. Hash functions appear everywhere: in MACs, in digital signatures, in password storage, in commitment schemes and in blockchains. The book defines the properties they should have and studies how they are built.
The most important property is collision resistance: it should be infeasible to find two different inputs with the same output. Since outputs are short and inputs are unlimited, collisions must exist in abundance. The requirement is that nobody can find one. Weaker properties include resistance to finding an input that produces a given output, and resistance to finding a second input matching a given first input. The book explains how these relate and which applications need which.
The birthday problem sets a basic limit. In a room of only twenty-three people, the chance that two share a birthday is already above one half, even though there are three hundred and sixty-five possible days. In the same way, a hash function with an output of n bits can be made to collide after roughly two to the power n over two attempts, not two to the power n. This is why a hash function intended to give 128 bits of security needs an output of about 256 bits. The book explains this attack and its consequences for parameter choice.
The book also describes how practical hash functions are built, including the Merkle-Damgard construction, which processes a long input in blocks using a smaller compression function, and the different sponge design used in SHA-3. It notes known weaknesses of earlier functions: collisions were found in MD5 and later in SHA-1, and both are no longer suitable where collision resistance matters.
The most debated topic in this part is the random oracle model. Many practical schemes are hard to prove secure using only standard properties of hash functions. In the random oracle model, one pretends that the hash function is a truly random function that all parties can query. Proofs then become possible for efficient schemes widely used in practice. The difficulty is that no real hash function is a random oracle, and theorists have constructed artificial schemes that are secure in the random oracle model but insecure with any real hash function. The book presents this controversy fairly. It treats a proof in the random oracle model as meaningful evidence, much better than no proof, but weaker than a proof under standard assumptions.
For readers interested in blockchains, this chapter of thought is especially relevant. Proof-of-work mining assumes that a hash function behaves unpredictably enough that the only way to find an input with a small output is to try many inputs. Merkle trees, used to commit to large sets of transactions, depend on collision resistance. Many signature schemes used on blockchains are analysed in the random oracle model. Understanding exactly what is assumed in each case is a defence against overconfidence.
Key idea ten: hard problems and the public-key world
Public-key cryptography needs mathematical structure that private-key cryptography can do without. The book develops the number theory needed: modular arithmetic, the group of integers modulo a prime, the Chinese remainder theorem, how to find large primes efficiently, and the basics of cyclic groups. It then introduces the hard problems on which public-key schemes rest.
The first family concerns factoring. Given the product of two large random primes, find the primes. The RSA problem is a related task: given a public modulus, a public exponent and a value, compute a particular root of that value modulo the modulus. Solving the RSA problem is no harder than factoring, but it is not known to be equally hard. The book is careful about this kind of distinction, which matters when assessing what a scheme really relies on.
The second family concerns discrete logarithms. In a suitable cyclic group, given a generator and a group element, find the exponent that produces the element. Related problems include the computational Diffie-Hellman problem, which asks for a combination of two hidden exponents, and the decisional Diffie-Hellman problem, which asks only to tell such a combination apart from a random element. These variants matter because different schemes need different ones, and the decisional version can be easy in some groups where the computational version is still believed hard.
Elliptic curves supply groups in which discrete logarithms appear much harder than in the integers modulo a prime of similar size. This allows much shorter keys for the same level of security, which is why elliptic curve cryptography is now the common choice for signatures and key exchange, including in Bitcoin and Ethereum. The book presents elliptic curves at the level needed to use them correctly, without the full algebraic geometry behind them.
The book then builds the main public-key tools on these foundations. Key exchange in the Diffie-Hellman style is defined and analysed against eavesdroppers, with a clear warning that it gives no protection against an attacker who can intercept and replace messages unless the parties authenticate each other. Public-key encryption is defined using the same indistinguishability games as before, adapted to the public-key setting, and the book explains why textbook RSA, the bare mathematical operation, is not a secure encryption scheme because it is deterministic and malleable. Secure use requires randomised padding, and the book discusses standardised padding methods and the attacks that motivated them. It also explains hybrid encryption, in which a public-key method protects a short symmetric key and a fast symmetric scheme protects the data, which is how public-key encryption is used in practice.
Digital signatures are treated with the same care. The book defines unforgeability for signatures, shows why the bare RSA operation is not a secure signature, and explains the hash-and-sign approach. It presents signature schemes based on discrete logarithms, connected to the Schnorr scheme and to the DSA and ECDSA standards, and it explains why the random value used in signing must never repeat or be predictable. Reusing it reveals the private key. This has happened in real systems, including a well-known case in a game console's signing process and incidents affecting cryptocurrency wallets with poor random number generation.
Finally, the book connects signatures to public-key infrastructure: certificates that bind public keys to identities, and the chains of trust used on the web. This closes the loop between mathematics and the systems readers use daily.
Key idea eleven: one-way functions as the floor
Between the private-key and public-key parts sits a short theoretical journey that many readers find the most beautiful in the book. Its question is simple. What is the least we must assume to build private-key cryptography at all?
The answer is one-way functions. A function is one-way if it is easy to compute and, for a random input, hard to invert. Without one-way functions, almost no computational cryptography is possible, because an attacker could invert whatever an honest party computes. The surprising result is the converse: from any one-way function, one can build pseudorandom generators, then pseudorandom functions, then pseudorandom permutations, and from these, secure private-key encryption and MACs. Private-key cryptography and one-way functions stand or fall together.
The path from one-way functions to pseudorandom generators passes through the idea of a hard-core predicate: a single bit of information about the input that is easy to compute from the input but hard to guess from the output. A key theorem, due to Goldreich and Levin, shows how to find such a bit for any one-way function after a small modification. From one hard bit, one can build a generator that stretches its seed by one bit, and then by repeated application, as far as needed. From a generator one builds pseudorandom functions by a tree construction due to Goldreich, Goldwasser and Micali.
Readers should not expect these constructions to be efficient enough for practice. They are not. Their importance is conceptual. They show that the whole edifice of private-key cryptography rests on a single, minimal assumption. That gives confidence: as long as any one-way function exists, private-key cryptography is possible. Public-key cryptography appears to need more structure, and no comparable minimal assumption is known to suffice. That gap is one of the deep open questions in the field.
Key idea twelve: secrecy lives only in the key
Running beneath every definition in the book is a principle older than the modern field. In the 1880s the Dutch linguist and cryptographer Auguste Kerckhoffs set out design rules for military ciphers. One of them has outlived the rest: a cipher should remain secure even if the enemy knows everything about it except the key. The book adopts this principle from the start and builds it into its definitions. In every security game, the attacker knows the algorithms. Only the key, and any fresh randomness, are hidden.
There are three reasons to insist on this, and the book draws them out. First, algorithms are hard to keep secret. They are embedded in software and hardware that ship to many people, and they can be reverse engineered. A key is short and can be stored carefully. Second, if a key leaks, it can be replaced cheaply. If a secret algorithm leaks, the whole system must be redesigned and redeployed. Third, a public algorithm can be studied by many independent experts. Flaws are found sooner, and confidence grows from scrutiny instead of from hope.
The opposite approach, often called security through obscurity, has a poor record. Proprietary ciphers used in mobile phone networks, in DVD copy protection and in some building access cards were kept secret, reverse engineered and broken, in several cases quickly. Their designers had avoided the review that would have caught the weaknesses before deployment.
A reader should not confuse this principle with a rule that everything must be public. Organisations may reasonably keep details of their systems private as one layer among several. The principle says only that security must not depend on that privacy. The design should survive full disclosure. That is also what makes formal definitions meaningful: a proof that quantifies over all attackers who know the scheme is a proof that does not rely on obscurity.
The tradition around it
Where the method came from
The approach the book teaches was built over about two decades. Claude Shannon's 1949 paper on the communication theory of secrecy systems gave cryptography its first mathematical foundations, including perfect secrecy. The public-key revolution began with Diffie and Hellman in 1976 and Rivest, Shamir and Adleman in 1977. In the early 1980s Shafi Goldwasser and Silvio Micali introduced probabilistic encryption and the definition of semantic security, and with Charles Rackoff they introduced zero-knowledge proofs. Manuel Blum and others developed pseudorandom generators from hard problems. Goldwasser and Micali received the Turing Award in 2012 for this work. Oded Goldreich's Foundations of Cryptography collected the theory in rigorous form. Katz and Lindell's achievement was to make this tradition teachable at an earlier stage and to connect it continuously to practice.
Its neighbours on this bay
On this bay, A Course in Number Theory and Cryptography by Neal Koblitz is the natural preparation for the public-key chapters. It gives the number theory and elliptic curve background with more mathematical texture. Koblitz is also known for public criticism of what he saw as overreliance on provable security, which makes him an interesting voice to read alongside this book.
Applied Cryptography by Bruce Schneier and the Handbook of Applied Cryptography by Menezes, van Oorschot and Vanstone represent the earlier, broader view of the field. The Handbook is a precise reference for algorithms and facts; Applied Cryptography is a lively catalogue. Neither is built around definitions and reductions in the way Katz and Lindell is. Reading a section of either alongside the corresponding chapter here shows clearly what the modern method adds.
Serious Cryptography by Jean-Philippe Aumasson covers much of the same ground with a practitioner's eye and far less formalism. It is a good bridge for readers who find the textbook steep. Cryptography Engineering by Ferguson, Schneier and Kohno addresses what this book mostly sets aside: how to implement and deploy schemes safely, where the edges of systems fail. The two books are complementary. One tells you what a secure primitive is; the other tells you how not to ruin it.
Bitcoin and Cryptocurrency Technologies by Narayanan and colleagues uses hash functions, signatures and commitments in ways that this textbook prepares a reader to understand precisely. Mastering Bitcoin and Mastering Ethereum describe the systems in engineering detail and assume that their cryptographic parts work. A reader of this book will know what that assumption amounts to.
For history, The Code Book by Simon Singh, The Codebreakers by David Kahn, and Crypto by Steven Levy tell how the field got here. Levy's account of the public-key inventors is a good companion to the public-key chapters, giving faces to the ideas.
What came after
Since the first edition, the field has moved in several directions that later editions reflect in part. Authenticated encryption became standard. Elliptic curves became the default for public-key operations. The prospect of quantum computers, which could solve factoring and discrete logarithms efficiently using Shor's algorithm, led to a large effort on post-quantum cryptography based on lattices, codes and hash functions, and to new standards selected through an open process run by the United States National Institute of Standards and Technology. Advanced topics such as zero-knowledge proofs, multiparty computation and fully homomorphic encryption moved from theory toward deployment, partly driven by blockchain applications. The method this book teaches carries over to all of them.
Questions and criticisms
The limits of proofs
The most important criticism of provable security, raised by Koblitz and Alfred Menezes among others in a series of essays, is that proofs can give a false sense of confidence. A proof may rely on an unrealistic model, contain an error, or bound the attacker so loosely that it says nothing useful for real parameters. Some practical attacks have exploited exactly the gap between the model and the system. Katz and Lindell are aware of this debate. Their response, implicit in the book, is that the cure for bad proofs is better proofs and clearer definitions, not abandoning proofs. A fair reader should keep both views in mind.
What the models leave out
Definitions in the book typically model the attacker as interacting with ideal algorithms through clean interfaces. Real attackers measure timing, power consumption and electromagnetic leakage; exploit memory errors; trick users; and attack keys at rest. These are mostly outside the book's scope. The book says so, but a reader new to the field can still finish it believing that a proven scheme is a safe system. It is not. That is why Cryptography Engineering sits next to it on the shelf.
Asymptotics versus numbers
The asymptotic framework, with its polynomial-time attackers and negligible probabilities, is elegant but can hide the constants that determine real security. A reduction that loses a large factor may require much larger keys than one that is tight. The book discusses concrete security, but critics argue that the field as a whole was slow to treat tightness seriously. Later research has paid much more attention to it.
Difficulty and audience
For many students the book is hard. Its proofs are careful and its pace is steady, and some readers want more intuition before formalism. The later editions improved this by moving practical material earlier and the most abstract theory later. Even so, a reader without experience in proofs should expect to work slowly.
What has held up
The core method has held up completely. Every major new standard, from authenticated encryption modes to post-quantum schemes, comes with security definitions and reductions in the style the book teaches. Attacks on deployed protocols continue to fall, again and again, into categories that the book's definitions would have flagged: deterministic encryption, unauthenticated ciphertexts, reused nonces, weak randomness. That record is the strongest argument for learning to think this way.
Why it is on this shelf
This book is here because it teaches how to know whether something is secure. Many books on this bay describe systems that depend on cryptography. Few explain what the cryptography actually promises, and on what basis. Without that understanding, a reader can only take claims on trust.
For a reader of technology, the book offers a precise vocabulary. Words like secure, random and unforgeable acquire exact meanings, and once learned they make vague claims easy to spot. For a reader of blockchain and digital money, it explains the guarantees on which those systems rest: what a hash function must do, what a signature proves, and what happens when randomness fails. For a reader of economics, it is an example of how a field became reliable by making its assumptions explicit and testable, a discipline that economic modelling also aims at.
For a reader of Vedanta and Jyotish, who works with traditions that prize careful definition and the testing of claims through reasoning, the book's method will feel familiar in spirit. Indian philosophical schools long insisted on defining terms, stating the means of valid knowledge, and examining an opponent's position before establishing one's own. The cryptographer's habit of defining the attack before claiming security is a modern cousin of that discipline. We keep the book because it shows rigour serving a practical end.
How to read it
Before you begin
Make sure you are comfortable reading and writing short proofs, and with basic probability: independent events, expected values, and the union bound, which says that the chance of any of several events is at most the sum of their chances. If these are rusty, spend a week on them first. It will save time later.
A first pass through the method
Read the opening material on what modern cryptography is, then the treatment of perfect secrecy, then the first chapters on private-key encryption and computational security. Go slowly. These chapters set out the method, and everything else depends on them. Aim for one section per sitting, and do not move on until you can explain the definitions in your own words to an imagined student.
Work with a pencil
For each security definition, draw the game as a picture: the challenger on one side, the attacker on the other, arrows for each message. For each proof, write out the reduction as an algorithm in your own notation, identifying what it receives, what it gives the attacker, and what it outputs. Then try the exercises at the end of each chapter. Some ask you to break an insecure scheme. Those are the most instructive, because they teach you to see why a definition matters.
Then integrity and the public-key world
After the private-key encryption chapters, read the material on message authentication and authenticated encryption, then hash functions. Then turn to the number theory and the public-key chapters. If the number theory feels thin, read the relevant parts of Koblitz alongside.
What to postpone
On a first pass you may postpone the theoretical construction of pseudorandom objects from one-way functions, and the more detailed treatments of specific block cipher designs. Return to the theory when you want to understand why the field believes what it believes. Return to the cipher internals when you need them.
Pace
A realistic pace for self-study is one chapter every one to two weeks, including exercises. The core material takes three to four months at that rate. That is slower than reading most books on this shelf, and it should be.
What to read next
From this bay, read Cryptography Engineering next, to see how sound primitives fail in implementation and deployment. Then read Bitcoin and Cryptocurrency Technologies to see these tools assembled into a working system. For deeper mathematics, read A Course in Number Theory and Cryptography. For a more practical survey that complements the theory, read Serious Cryptography.
Questions to carry
- What is the difference between a threat model and a security goal, and why do you need both?
- Why does perfect secrecy force the key to be as long as the message?
- Which two relaxations turn perfect secrecy into computational security, and why is each necessary?
- Why must encryption be randomised to resist chosen-plaintext attacks?
- Give an example of a system that unintentionally gives an attacker the power of a chosen-ciphertext attack.
- Why is a proof of security only as good as its assumption and its definition?
- What exactly does a pseudorandom generator promise, and what does it not promise?
- Why is encrypt-then-authenticate safer in general than the other orders?
- How does the birthday problem determine the output length of a hash function?
- What do we gain and what do we risk when we prove a scheme secure in the random oracle model?
- Why is textbook RSA not a secure encryption scheme or a secure signature scheme?
- Why does reusing the random value in a discrete-log signature reveal the private key?
- What does it mean that private-key cryptography and one-way functions stand or fall together?
- What would change in this book if a large quantum computer were built tomorrow?
Words to know
- Kerckhoffs's principle: The rule that a system should remain secure even if everything about it except the key is public.
- Threat model: A precise description of what an attacker is allowed to see and do.
- Perfect secrecy: The property that a ciphertext reveals nothing about the message even to an attacker with unlimited computing power.
- One-time pad: An encryption scheme that combines a message with a random key of equal length; perfectly secret if the key is never reused.
- Computational security: Security against attackers with limited computing time, allowing a very small probability of success.
- Negligible function: A probability that shrinks faster than one over any polynomial in the security parameter.
- Security parameter: A number, roughly the key length, that controls how hard a scheme is to break.
- Reduction: A proof that turns any successful attacker on a scheme into an algorithm that solves an assumed-hard problem.
- Hybrid argument: A proof technique that moves between two situations through a chain of small, individually undetectable changes.
- Indistinguishability: The requirement that an attacker cannot tell which of two chosen messages was encrypted.
- Chosen-plaintext attack: An attack model in which the adversary can obtain encryptions of messages of its choice.
- Chosen-ciphertext attack: An attack model in which the adversary can also obtain decryptions of ciphertexts of its choice.
- Pseudorandom generator: An efficient algorithm that stretches a short random seed into a longer string indistinguishable from random.
- Pseudorandom function: A keyed function that efficient observers cannot distinguish from a truly random function.
- Block cipher: A keyed permutation on fixed-size blocks, such as AES, modelled as a pseudorandom permutation.
- Mode of operation: A method for using a block cipher to encrypt messages longer than one block.
- Message authentication code: A short tag computed with a shared key that lets the receiver detect any change to a message.
- Authenticated encryption: Encryption that guarantees both secrecy and integrity of messages.
- Collision resistance: The property that it is infeasible to find two inputs with the same hash output.
- Random oracle model: A proof framework that treats a hash function as a truly random function available to all parties.
- Discrete logarithm problem: Given a generator and an element of a cyclic group, find the exponent that produces the element.
- Hybrid encryption: Using public-key encryption to protect a short symmetric key, and symmetric encryption for the data itself.
- Digital signature: A public-key method that lets anyone verify that a message was approved by the holder of a private key and not altered.
- One-way function: A function that is easy to compute and hard to invert on random inputs; the minimal assumption for private-key cryptography.
A note on this edition
This is a study edition written for this shelf in our own words. It is a companion to Katz and Lindell's Introduction to Modern Cryptography, not a replacement. It explains the book's method and main ideas with examples of our own, places it in its tradition, and suggests a way to read it. It does not reproduce the book's definitions, theorems, proofs, figures or exercises, and it cannot teach what only working through those will teach.
The textbook itself is in copyright and is available in three editions. It is worth getting from a library or a bookshop and studying with a pencil. Where this edition mentions facts beyond the book, they are general and widely known; where we were unsure of a detail, we have left it out.