Building end to end encryption
summary
Excalidraw encrypts drawings in the browser with the Web Crypto Subtle API using AES-GCM 128-bit, generates a 12‑byte IV via crypto.getRandomValues, and prepends that IV as first 12 bytes = IV to the uploaded payload so the server only stores ciphertext. The symmetric key is exportable as a JWK K value and placed in the URL fragment (key in URL hash), then imported back with importKey on load; exact key and IV are required to decrypt.
AI-written summary · about
chapters (13)
- 0:00Introduction and setup
- 2:09End-to-end encryption basics
- 3:13Client-server encryption limits
- 4:39Hiding encryption keys in URLs
- 5:43Web Crypto API overview
- 7:26Handling binary data in browser
- 9:57Understanding crypto keys
- 12:22Choosing AES-GCM algorithm
- 14:07Live encryption demo
- 17:58Encryption algorithm steps
- 20:47Sharing encrypted data securely
- 23:41Decryption process explained
- 27:09Summary and acknowledgments
