End-to-End Encryption

Communication Privacy Where Only Endpoints Can Read

Definition

End-to-end encryption (E2EE) is a system of communication where only the communicating users can read the messages. No eavesdropper—including the service provider—can access the cryptographic keys needed to decrypt the conversation.

Key Principle

In E2EE, encryption and decryption occur only on the endpoints (sender and recipient devices). The data remains encrypted while in transit and at rest on servers.

How It Works

1

Key Generation

Each user generates a public/private key pair. The public key is shared, while the private key never leaves the device.

2

Key Exchange

Users exchange public keys, often verified through safety numbers or QR codes to prevent man-in-the-middle attacks.

3

Message Encryption

The sender encrypts the message with the recipient's public key (or a derived session key).

4

Decryption

Only the recipient's private key can decrypt the message.

E2EE Protocols

Signal Protocol

The gold standard for secure messaging, used by Signal, WhatsApp, and others. Features:

  • Perfect Forward Secrecy
  • Double Ratchet Algorithm
  • Deniable Authentication
  • Asynchronous Key Exchange

Other Protocols

  • OMEMO: XMPP-based, similar to Signal Protocol
  • Matrix/Olm: Used by Element and Matrix clients
  • OpenPGP: Email encryption standard
  • MLS: New IETF standard for group messaging

Popular Implementations

Signal

Open source secure messenger

Messaging

WhatsApp

Uses Signal Protocol

Messaging

ProtonMail

E2EE email service

Email

Element

Matrix-based messaging

Messaging

Limitations

⚠️

E2EE Doesn't Protect Everything: While message content is protected, metadata (who talks to whom, when, how often) may still be visible. Additionally, if an endpoint device is compromised, encryption offers no protection.

Metadata Exposure Timing, frequency, and participants may be logged
Endpoint Compromise Malware on devices can read decrypted messages
Backup Vulnerability Cloud backups may not be encrypted
Related

Learn More