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 method | Example | Who can read the data |
|---|---|---|
| Encryption in transit (TLS) | a website over HTTPS | client and server — the endpoints of the channel |
| Encryption at rest | disks and object storage | the service that holds the key |
| End-to-end encryption | a messenger with E2EE | only the participants’ devices |
Sources
the term is written from these pagesVerified 9 Nov