How Does End-to-End Encryption Work?

What the lock icon actually means — and why it matters for your privacy.

Watch It

E2EE in Action: Alice and Bob

WHAT HAPPENS
Alice: "Hey! Let's grab dinner at 7" Alice's phone: ✔️ Encrypts x9#kL2pQ Server: Routes x9#kL2pQ Bob's phone: ✔️ Decrypts Bob: "See you there!"
The server never sees the message content — it only routes encrypted data. Even if a hacker steals the server, they get only gibberish. Only Alice and Bob have the keys to read the actual text. This is end-to-end encryption. <sup style='font-size:0.7rem'><a href='https://faq.whatsapp.com/820124435853543' style='color:var(--accent)'>[1]</a></sup>
How It Works

E2EE: 6 Key Concepts

The cryptographic building blocks that keep your messages private.

🔑
1. Public + Private Key Pair
Tap to flip
Each user has two keys: a public key (shared openly, like your address) and a private key (kept secret, like your house key). Anyone can encrypt a message using your public key, but only you can decrypt it with your private key. This is the foundation of all E2EE.
🔒
2. Encryption at the Sender
Tap to flip
When Alice sends a message, her app encrypts it using Bob’s public key. The encrypted output is gibberish — unreadable without Bob’s private key. Even the app’s own servers cannot read it. The lock icon means the data is encrypted before it leaves your device.
🛡️
3. Server: Blinded Relay
Tap to flip
The platform’s servers receive only encrypted ciphertext. They route the message to the recipient but cannot read it. This is the key difference from TLS — where the server decrypts and re-encrypts. In E2EE, the server never has the decryption key.
🗝️
4. Decryption at the Recipient
Tap to flip
Bob’s phone receives the encrypted message and decrypts it using his private key — which never leaves his device. The decrypted text is only visible on Bob’s screen. Not on any server, not to the platform, not to a hacker.
🔍
5. Key Verification (Safety Numbers)
Tap to flip
WhatsApp and Signal let you verify that no one intercepted the keys by comparing a “safety number” or QR code. If the keys match, the channel is secure. This catches man-in-the-middle attacks where someone might have swapped a public key.
🔛
6. Forward Secrecy
Tap to flip
Even if someone steals Bob’s private key later, they cannot decrypt past messages. Each message uses a unique temporary key that is discarded after use. This is called forward secrecy — protecting your history even if your key is compromised later. [1]
Compare

E2EE vs TLS vs No Encryption

Not all lock icons are equal. Here is what each layer protects.

🔒
End-to-End (E2EE)
Tap to flip
Data is encrypted on the sender’s device and decrypted only on the recipient’s device. The server cannot read the content. Used by Signal, WhatsApp, iMessage. Best for private messaging.
🛡️
TLS (Transport Layer)
Tap to flip
Data is encrypted between your device and the server, but the server can decrypt and read it. Used by all HTTPS websites. The lock in your browser bar means TLS, not E2EE. The server operator can see your data. [2]
No Encryption (HTTP)
Tap to flip
Data travels as plain text. Anyone on the network (Wi-Fi router, ISP, hacker on your coffee shop network) can read it. This is why unencrypted HTTP sites show “Not Secure” in the browser bar.
📭
E2EE + Metadata Problem
Tap to flip
E2EE protects message content, but metadata can still leak: who you talk to, when, how often, from where. The US government subpoenas metadata routinely. Signal minimises metadata collection; WhatsApp (Meta) collects more for advertising.
⚖️
What WhatsApp Doesn’t Tell You
Tap to flip
In 2026, a class-action lawsuit alleged WhatsApp maintains a backdoor giving Meta employees access to messages through content moderation scanning. E2EE protects against external attackers, but platform insiders may still have access via design choices. [3]
✔️
Signal: Gold Standard
Tap to flip
Signal minimises metadata, is open-source, and is independently audited. Its encryption protocol (Signal Protocol) is the same one WhatsApp licenses. But Signal does not have the corporate pressure to scan content or mine data for ads.
Quiz

E2EE: Fact or Fiction?

6 statements. TRUE or FALSE?

About the lock icon in your browser:

The lock icon in a browser bar means your messages are end-to-end encrypted.

About how E2EE works:

With end-to-end encryption, only the sender and recipient can read the message content.

About the Signal vs WhatsApp debate:

Signal and WhatsApp use the same encryption protocol for their end-to-end encryption.

About metadata:

End-to-end encryption protects message content, but not who you are talking to or when.

About forward secrecy:

If someone steals your private key, they can decrypt all your past messages.

About the E2EE comparison:

TLS encryption and end-to-end encryption provide the same level of privacy.

Strength

How Encrypted Is Your Communication?

From plain text to Signal-level E2EE — slide to see the spectrum.

30
050100
Slide to assess
Protect Yourself

How to Know If You’re Really Encrypted

Practical steps to verify your privacy.

Look for the Signal logo, not just a lock
WhatsApp, Signal, and iMessage all show a lock, but Signal collects the least metadata and is independently audited.
Verify safety numbers
In WhatsApp and Signal, compare safety numbers with the person you are talking to (in person or on a trusted channel). If they match, no one intercepted your keys.
Check the URL bar
The lock in your browser is TLS, not E2EE. TLS means the connection is secure, but the website can see your data. Do not confuse the two.
Be aware: E2EE does not stop metadata leaks
Who you talk to, when, and how often is visible to the platform. For maximum privacy, use Signal which minimises metadata.
Update your apps
Encryption protocols get patched. Outdated apps may have known vulnerabilities that bypass encryption. Always run the latest version.
Do not share private keys
Your private key should never leave your device. No legitimate service will ever ask for it. If someone does, it is a scam.
E2EE is not bulletproof
If both devices are compromised (malware, spyware), E2EE does not help. Device security is as important as encryption.