End-to-end encryption (E2EE) means a message is encrypted on the sender's device and can only be decrypted on the recipient's device, so the company running the service never holds the keys and cannot read the content. It protects what you say from the provider, hackers who breach the provider, and anyone on the network; it does not hide who you talk to, protect an unlocked phone, or cover backups that aren't end-to-end encrypted too.
End-to-end encryption vs encryption in transit
Almost every service now says your data is "encrypted". The question is who has the key.
| Type | Encrypted between | Can the provider read it? | Example |
|---|---|---|---|
| In transit (TLS/HTTPS) | Your device and the server | Yes, the server decrypts it | Most websites, standard webmail |
| At rest | The provider's disks | Yes, the provider holds the key | Most cloud storage by default |
| End-to-end | Your device and the recipient's device | No | Signal, iCloud with Advanced Data Protection |
TLS, the protocol behind HTTPS, encrypts the connection between a client and a server. It stops someone on the café Wi-Fi from reading your traffic, but the server at the other end sees everything in plain form. That is fine for a bank website, which needs to read your request. It is not fine for a chat app, where the server only needs to pass the message along.
Apple's documentation shows the difference clearly. With standard iCloud data protection, data is encrypted in transit and at rest, but Apple holds the keys for most categories, which lets it restore your backups if you forget your password. Turning on Advanced Data Protection moves the keys to your trusted devices and raises the number of end-to-end encrypted categories from 15 to 25, including iCloud Backup, Photos, Notes and iCloud Drive. The trade-off: Apple can no longer help you recover that data.
How end-to-end encryption works
E2EE is built on public-key cryptography (see public-key cryptography explained). Each device generates a key pair and keeps the private key on the device. The service distributes only the public keys.
- Key publishing. When you install a messenger such as Signal, your device uploads public keys to the server. In Signal's X3DH protocol this is an identity key, a signed prekey and a batch of one-time prekeys.
- Starting a conversation. To message you, the sender's app fetches your public keys from the server and combines them with its own private keys to derive a shared secret. X3DH is designed so this works while you are offline.
- Encrypting each message. The shared secret feeds a symmetric cipher that encrypts the actual message on the sender's phone. The server stores and forwards ciphertext it cannot decrypt.
- Changing keys constantly. Signal's Double Ratchet derives a new key for every message, so "earlier keys cannot be calculated from later ones" (forward secrecy) and, once fresh key exchanges happen, "later keys cannot be calculated from earlier ones" (recovery after a compromise).
Group chats are harder, because every member needs the keys. The IETF standardised Messaging Layer Security (MLS) in RFC 9420 (2023) for this. It provides group key establishment with forward secrecy and post-compromise security for groups "from two to thousands" of members.
The part people skip: verifying the other person's key
E2EE has one weak point that the maths can't fix on its own. Your app trusts the server to hand it the right public key for the person you are messaging. A malicious or compromised server could hand out its own key instead and sit in the middle.
Signal's X3DH specification addresses this directly: the two parties may compare their identity public keys "through some authenticated channel", for example by comparing fingerprints manually or scanning a QR code. It also states that without this check, "the parties receive no cryptographic guarantee as to who they are communicating with."
In apps this appears as a safety number, security code or verification QR code in the contact's details. Compare it in person or over a channel you already trust. If the app warns that a contact's code has changed, it usually means they reinstalled the app or got a new phone, but it is worth confirming with them before sending anything sensitive.
What end-to-end encryption does not protect
- Metadata. The service may still know who messaged whom, when, from which IP address, and how often. How much it keeps varies a lot between services.
- The endpoints. Messages are readable on your device and the recipient's. Malware, a shoulder-surfer, an unlocked phone or a recipient who takes a screenshot all bypass E2EE completely.
- Backups. If your chat backup goes to a cloud account that isn't end-to-end encrypted, the backup is readable by that provider. Apple notes, for example, that Messages in iCloud is end-to-end encrypted only when iCloud Backup is off, or when Advanced Data Protection covers the backup.
- Things outside the encrypted channel. Even with Advanced Data Protection, Apple lists iCloud Mail, Contacts and Calendars as not end-to-end encrypted, because they need to work with the global email system and the CalDAV and CardDAV standards.
- Shared links. Features that make content available to people outside the encrypted group, such as "anyone with the link" sharing, step outside E2EE. Apple's overview names shared albums and link-based sharing among these cases.
How to tell if a service is really end-to-end encrypted
- Look for a published protocol. Signal publishes X3DH, PQXDH and the Double Ratchet. Services that only say "military-grade encryption" usually mean TLS plus encryption at rest.
- Ask who can reset your access. If the provider can restore your data after you forget your password, without a recovery key or one of your devices, the provider holds a key, and the data is not end-to-end encrypted.
- Check whether it is on by default. Some services encrypt everything end to end; others require a "secret chat" mode or a separate setting such as Advanced Data Protection.
- Check the web version. A browser client can still be end-to-end encrypted, but it loads its code from the provider each time, so you are trusting that code on every visit.
Where else you see it
The same idea, encrypting on the device with keys the provider never sees, protects password managers (see how password managers work). Digital signatures solve the related problem of proving who sent something and that it wasn't changed; digital signatures explained covers how they work. To encrypt a short piece of text yourself before sending it through a channel you don't trust, the larely encrypt tool does it with AES-256 in the browser, using a password you share with the recipient some other way.
Frequently asked questions
- Can the police or the company read end-to-end encrypted messages?
- Not by asking the service for message contents, because the service never has the keys. They can still get messages from an unlocked or seized device, from a participant who shares them, or from an unencrypted cloud backup. Metadata the service keeps, such as account details, may also be available.
- Is HTTPS end-to-end encryption?
- No. HTTPS (TLS) encrypts the connection between your device and the server, and the server decrypts everything it receives. That protects you from people on the network, but the website or service itself can read your data. End-to-end encryption keeps the content unreadable to the service as well.
- Is end-to-end encryption the same as zero-knowledge?
- They are closely related. Zero-knowledge is a marketing term usually used for storage and password managers where data is encrypted on your device with a key the provider never receives. End-to-end encryption is the term used for communication between people. Both mean the provider cannot decrypt your content.
- What happens if I lose my keys?
- The provider cannot recover your data for you, because it never had the key. That is why services with end-to-end encrypted storage ask you to set up a recovery key, recovery contact or device passcode before enabling it. Apple, for example, requires at least one recovery method before you can turn on Advanced Data Protection.