What is end-to-end encryption and how does it work?
Short answer
End-to-end encryption scrambles a message on your phone so that only the person you write to can unscramble it. The company that runs the messenger carries the scrambled message but cannot read it. It protects the content of a message, not everything around it: backups, the people at the other end and some data the app still collects sit outside it.
What does end-to-end encryption mean?
WhatsApp describes it as scrambling messages so that only the sender and the person they talk to can read them, and says nobody outside the chat, including WhatsApp, can read, listen to or share them. The standards body IETF puts it more strictly: users keep some level of protection even when the operator of the messaging system acts maliciously.
The point is who holds the keys. A key is a secret number that locks and unlocks a message. With end-to-end encryption, the keys sit only on the phones of the two people talking. The company in the middle never has them, so it cannot read your messages, hand them over or lose them in a breach.
How is it different from normal encryption?
Many services encrypt data only between your app and their servers. This is called server-client encryption, or transport or cloud encryption. It stops someone on the network from reading your messages on the way, but the provider holds the keys and can read everything on its servers.
Telegram describes its normal cloud chats this way: they are encrypted between the app and its servers, not end to end. That is what lets them sync across devices. Telegram's end-to-end mode is the separate secret chat, which is tied to one device and is not part of the Telegram cloud.
| Server-client encryption | End-to-end encryption | |
|---|---|---|
| Who holds the keys | The provider | Only the two phones |
| Can the provider read messages | Yes | No |
| Messages on the provider's servers | Readable by the provider | Unreadable by the provider |
| Example from the apps' own descriptions | Telegram cloud chats | Telegram secret chats, WhatsApp chats |
How does it work step by step?
The details differ between apps, but the pattern is the same:
- Your phone creates a pair of keys: a public key you can share and a private key that stays on the phone. Apple describes this for iMessage: the device creates encryption and signing key pairs, and the public keys go to Apple's directory.
- Your phone looks up the public key of the person you write to.
- The two phones use their keys to agree on a shared secret. Signal's key agreement protocol, called X3DH, does this using public keys, and it also lets the two parties confirm who they are talking to.
- Your phone scrambles the message with a key made from that secret and sends it. The server only routes it.
- The other phone unscrambles it with its own private key.
Good designs also change the key as the chat goes on. Signal's Double Ratchet derives a new key for every message, so earlier keys cannot be worked out from later ones. This is called forward secrecy: if someone steals your keys later, messages sent earlier stay protected.
What does end-to-end encryption not protect?
This is where most wrong expectations come from.
- Backups. WhatsApp says that if you back up to iCloud or a Google Account, that backup service receives the information shared with it, including WhatsApp messages. Apple says that with standard protection and iCloud Backup on, the backup holds a copy of the key for Messages in iCloud, so Apple can help with recovery. Advanced Data Protection in iCloud changes that, at the cost of Apple being unable to recover your data.
- Chat type. In Telegram only secret chats are end-to-end encrypted. If you use a normal chat, the provider can read it.
- Business chats. WhatsApp says chats with a business that uses optional Meta services to store messages or to answer with Meta AI are not treated as end-to-end encrypted. It also says a business that receives your messages can use them under its own privacy practices.
- Data around the message. The WhatsApp privacy policy says WhatsApp collects usage and log data, device and connection data including IP address, and the phone number and profile name of the account. None of this is message content, and none of it is covered by the encryption of the message. The IETF notes in the same spirit that network connections can leak the IP address of a device.
- The other person. The other person can screenshot, copy or forward what you send. Encryption protects the path, not the receiver.
Which apps use it by default?
At the time of writing, according to the companies' own pages:
- WhatsApp turns it on automatically, with no setting to change, and requires a phone number for the account.
- iMessage is end-to-end encrypted. Apple says it does not store iMessage content or attachments and cannot decrypt them.
- Facebook Messenger moved personal chats to end-to-end encryption by default from December 2023.
- Telegram needs a manual choice: open the profile of the person, tap the three dots menu and choose Start Secret Chat.
How can you check that a chat is really encrypted?
Encryption protects you only if the key belongs to the right person. Messengers let you compare a code with your contact. In WhatsApp, open the chat, tap the contact name, tap Encryption, then read the automatic result or compare the QR code or the 60-digit number with your contact. WhatsApp says a changed code can appear after a reinstall, a phone change or a linked device change, and a mismatch can also mean you scanned the wrong contact.
Where Botron fits and where it does not
Botron encrypts every message on the sender's iPhone, and only the recipient's iPhone can decrypt it. There is no server, so there is no company in the middle that could hold a copy, and the keys are created on the phone and never leave it. You can read how this works on the Botron home page.
The limits are real. A message arrives only when the recipient or other Botron phones are within Bluetooth reach, Botron handles one-to-one text on iPhone only, and the other person can still take a screenshot. For writing to someone far away, an internet messenger with end-to-end encryption is the better tool.
Frequently asked questions
Can the company read end-to-end encrypted messages?
Not the content. WhatsApp, Meta for Messenger and Apple for iMessage each say they cannot read messages that are end-to-end encrypted. The company can still see data around the message, for example account details and connection data, depending on the app.
Is a message still private if I back it up?
It depends on the backup. WhatsApp says the backup service receives the messages you share with it. Apple says Advanced Data Protection extends end-to-end encryption to most iCloud data, including iCloud Backup, so that no one else can access it, not even Apple.
Does end-to-end encryption stop the police from getting my messages?
Where a provider has no keys, it has no message content to give. Telegram says it has no data to disclose from secret chats, and Signal says it lacks access to messages, calls, contacts, groups and profile data. A request can still reach data the provider does hold, and a person who can unlock your phone can read what is on it.
Do I have to turn it on?
In WhatsApp, iMessage and Messenger personal chats, no. In Telegram, yes: you must start a secret chat for each conversation.