Skip to content
StackDecode
System Design
13. Security ArchitectureAnimated

End-to-End Encryption

Only the endpoints can read the data.

The idea

Messages are encrypted on the sender's device and decrypted only on the recipient's.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AliceServerBob
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Alice encrypts on her device with Bob's public key material.

step:
1/4
at:
Alice
1/6

The green dot is a request moving through the system.

Step by step

  1. 1Sender encrypts with the recipient's key
  2. 2Server relays ciphertext
  3. 3Recipient decrypts
  4. 4Servers never see the content

Where it is used

Messaging apps.

Watch out for

Key verification and lost devices.

Related