Skip to content
  • E2E Encryption Flow · Cryptography

E2E Encryption Flow

LearnViaNotes @learnvianotes· 2 min read

The cryptographic progression of a message from local generation, socket routing, database storage, and remote decryption.

Sequential Steps

E2EE Sequential Flow Diagram

+----------+             +----------+             +----------+             +----------+
|  User A  |             | Backend  |             | Database |             |  User B  |
+----------+             +----------+             +----------+             +----------+
     |                        |                        |                        |
     |--- Get B's PubKey ---->|                        |                        |
     |<-- Return B's PubKey --|                        |                        |
     |                        |                        |                        |
     |--[ Derives AES Key ]--|                        |                        |
     |--[ Encrypts Message ]--|                        |                        |
     |                        |                        |                        |
     |---- Send Encrypted --->|                        |                        |
     |   {ct, iv, tag, to:B}  |---- Persist Record --->|                        |
     |                        |    {ct, iv, tag, to:B} |                        |
     |                        |                        |                        |
     |                        |---------------- Forward Encrypted ------------->|
     |                        |                 {ct, iv, tag, from:A}           |
     |                        |                        |                        |
     |                        |                        |                  [ Derives Key ]
     |                        |                        |                  [ Decrypts & ]
     |                        |                        |                  [ Verifies ]

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report