<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&family=Raleway:wght@800&family=Gabarito:wght@700&display=swap" rel="stylesheet">

End-to-end encryption

Also known as: E2EE, E2E encryption, end-to-end encrypted

End-to-end encryption

End-to-end encryption is a method of protecting messages or files that encrypts them on the sender's device and decrypts them only on the recipient's device, so no server or company in between can read them.

Updated

How Does End-to-End Encryption Work?

Most end-to-end encryption uses public-key cryptography.

  1. Each user's device creates a key pair: a public key that can be shared and a private key that never leaves the device.
  2. When you send a message, your app encrypts it with keys linked to the recipient, so only their private key can decrypt it.
  3. The encrypted message passes through the service's servers, which can deliver it but cannot read it.
  4. The recipient's device decrypts the message locally.

Many messaging apps use the Signal Protocol, which also changes keys frequently so that a single stolen key exposes as few messages as possible. A fuller description is available on Wikipedia.

Many apps let you compare a safety number or scan a QR code with your contact. This confirms you are talking to the right device and that nobody has swapped in their own keys in the middle. In group chats, each message is encrypted for every member's device. When you add a new phone, the app needs a way to move your keys or your message history securely, which is why setup on a new device can take extra steps.

Example

You send a photo to a friend in an end-to-end encrypted messaging app. The photo is encrypted on your phone before it is uploaded. The app's servers relay a file they cannot open. Your friend's phone decrypts it and shows the picture. If the company's servers were hacked, the attacker would get only encrypted data.

End-to-End Encryption vs Encryption in Transit

End-to-end encryptionEncryption in transit (TLS)
Who can read the dataOnly sender and recipientSender, recipient and the service in the middle
Where it is decryptedOn the end devicesOn the service's servers
Common examplesSecure messaging appsMost websites and standard email
Protects against server breachesYesNo

The padlock in your browser shows encryption in transit, not end-to-end encryption.

Why Does It Matter for Your Privacy?

  • Server breaches leak less. A data breach at the provider does not expose message content.
  • The provider cannot read or scan content. Only the people in the conversation hold the keys.
  • Email is usually not covered. Standard email can be read by the providers that handle it, so think about what you send. See how to send an anonymous email for ways to limit what your messages reveal.
  • Devices are the weak point. Lock your phone, keep software updated and check whether cloud backups of your chats are also encrypted.

End-to-end encryption protects data moving between people. Zero-knowledge encryption uses a similar idea for data you store with a service.

Frequently asked questions

Is regular email end-to-end encrypted?

No. Most email is encrypted in transit between servers, but the email providers can read the messages. Tools such as PGP and S/MIME add end-to-end encryption, but both sender and recipient need to set them up.

Can end-to-end encrypted messages still be read by someone?

Yes, if they get access to one of the end devices. Malware, an unlocked phone or an unencrypted cloud backup can expose messages after they are decrypted.

Does end-to-end encryption hide who I talk to?

Not always. It protects message content. The service may still see metadata such as who you message, when and how often, depending on how it is built.

Update history

  • : First published