Bookmarks

E2EE — end-to-end encryption

A way of protecting data in which only the parties to the exchange can read it: a message is encrypted on the sender’s device and decrypted on the recipient’s device.

Also: E2E encryption

checked 9 Nov

All terms

End-to-end encryption is not a separate algorithm but a property of a system: data is protected along the entire path between the participants, and only they hold the key for decryption. The service that carries and stores messages sees only ciphertext — it cannot read the conversation and cannot hand its contents to a third party.

How it works

Keys are generated on the participants’ devices rather than issued by the service. The private key never leaves the device, and participants exchange public keys through the server.

  • Each device creates a key pair: the public key is sent to the server, the private one stays on the device.
  • The sender fetches the recipient’s public key from the server and encrypts the message on their own device before sending it.
  • The server relays only ciphertext: it takes part in the exchange as a courier and does not see the contents.
  • The recipient decrypts the message with their private key on their own device.

Signal Protocol

Signal Protocol is widely used: PQXDH to establish a session between devices (previously X3DH) and the Double Ratchet algorithm for keys. Keys are recomputed for every message, so the compromise of a single key gives only partial protection for past and future messages: past messages cannot be derived from later keys (forward secrecy), while future messages are protected after the next exchange of public Diffie-Hellman values (post-compromise security). The protocol is open, published in specifications and underlies Signal and WhatsApp. For group chats the IETF has standardised a separate protocol, MLS (RFC 9420).

Who can see what

Protection methodExampleWho can read the data
Encryption in transit (TLS)a website over HTTPSclient and server — the endpoints of the channel
Encryption at restdisks and object storagethe service that holds the key
End-to-end encryptiona messenger with E2EEonly the participants’ devices

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • encryption at rest and in transit

    Encryption in transit protects the channel as far as the server: the service holds the key, so the service can read the data too. With E2EE only the participants hold the keys.

  • VPNvirtual private network

    A VPN protects the route as far as the gateway or the VPN server, and that server sees the traffic as plaintext; with end-to-end encryption the intermediate nodes see only ciphertext.

In depth in the references

where the topic is covered in detail