liveBook · Manning

Cryptography

As explained in Real-World Cryptography

The practice and study of protecting information and communications against unauthorized access or manipulation using mathematical techniques.

Cryptography secures protocols—step-by-step procedures followed by people or systems—against adversaries who may observe, alter, steal, or impersonate. It protects confidential messages, identifies allies, and supports security and privacy in everyday technology. section 1.1 section 1.9

A protocol with an obvious weakness

Suppose you leave a sword on the ground, nap under a tree, and recover it later. The steps form a protocol, but anyone can steal the sword during the nap. Cryptography improves protocols by accounting for adversaries and their opportunities to interfere. section 1.1

Cryptography is assembled from primitives that make distinct security claims:

  • Symmetric cryptography uses one secret key shared by the relevant participants. section 1.5 section 1.9
  • Asymmetric cryptography gives participants different views of keys, such as public and private keys. section 1.5 section 1.9
  • Cryptographic primitives include algorithms such as symmetric encryption, key exchange, asymmetric encryption, and digital signatures. section 1.9
  • Their main security goals often include confidentiality—protecting privacy—and authentication—verifying authenticity. section 1.9

Theoretical cryptography investigates mathematical and other constructions, while applied or real-world cryptography turns useful ideas into protection for applications. Practical decisions include security level, runtime, and input and output sizes. section 1.6

Cryptography is only one part of a secure system. Bugs in surrounding components may provide easier attack paths, so conservative, well-implemented cryptography needs equally careful system design and testing. section 16.6

Treat cryptography as a toolset for recognizing threats, choosing suitable primitives, and spotting dangerous designs—not as permission to create production cryptosystems casually. Complex systems require expert review, and established implementations are safer than newly invented algorithms. section 1.8 section 16.7

How Real-World Cryptography covers it

How deep it goes
Defines protocols, primitives, classifications, and practical concerns, but stops short of making readers production cryptography experts.
Examples
Uses an unattended sword protocol, confidential messaging, online banking, messaging, lost phones, AES, and RSA to ground the concept.
What it assumes
Assumes curiosity about technology and teaches protocols, primitives, adversaries, and security goals from plain-language examples.
What you can do after
Evaluate cryptographic choices, recognize suspicious designs, and identify when expert attention is needed without rolling custom cryptography into production.
How it connects
Connects cryptographic primitives with protocols, symmetric cryptography, asymmetric cryptography, authentication, confidentiality, and applied cryptography.

Also explained in

Compare how 4 books explain cryptography →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.