liveBook · Manning

End-to-end encryption

As explained in Real-World Cryptography

End-to-end encryption is a communication security technique in which only the communicating endpoints can decrypt the exchanged content.

End-to-end encryption protects a conversation across an adversarial path so that only the communicating people can decrypt the content. Unlike ordinary TLS arrangements, it does not require a central server or middlebox to see messages in cleartext. section 10.1

Figure 10.1 In most systems, a central server (top diagram) relays messages between users. A secure connection is usually established between a user and the central server, which can thus see all user messages. A protocol providing end-to-end encryption (bottom diagram) encrypts communications from one user up to its intended recipient, preventing any server in the middle from observing messages in cleartext.

Compare a server-relayed connection, where the server can read messages, with end-to-end encryption, where encryption continues from sender to intended recipient. section 10.1

Alice sends Bob an encrypted file

Bob gives Alice his public key, Alice encrypts the file with it, and Bob decrypts the result. The design fails if an attacker replaces Bob’s key before Alice can verify it. section 10.2

A usable end-to-end encryption system must address:

  • The communication path: TLS may protect user-to-server links while leaving the trusted server able to inspect messages. section 10.1
  • The root of trust: users need a known public key or a trusted out-of-band channel. section 10.2
  • The application design: modern messaging protocols are generally better suited than email systems built without encryption in mind. section 10.6

Trust remains the difficult part. Public-key cryptography can encrypt messages, but it cannot by itself prove that a received key belongs to the intended person. Systems therefore use approaches such as a web of trust, public key infrastructure, social key discovery, or established out-of-band channels. section 10.2 section 10.6

How Real-World Cryptography covers it

How deep it goes
Explains communication topology and trust bootstrapping through public-key examples, then surveys protocols without developing implementation details.
Examples
Uses server-relayed messaging, Alice’s encrypted file to Bob, email encryption, and modern messaging applications.
What it assumes
Assumes basic familiarity with encryption and public keys while introducing intermediary threats and trust bootstrapping through simple scenarios.
What you can do after
Evaluate messaging designs by separating endpoint encryption from server-link protection and checking how users authenticate public keys.
How it connects
Contrasts TLS with public-key cryptography and connects to PGP, S/MIME, Signal, Matrix, web of trust, and public key infrastructure.

Also explained in

Compare how 3 books explain end-to-end encryption →

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.