Notes on notes

published 2026-11-03 words 135 min 1

Encryption turns data into something that, without the key, can’t be told apart from random noise. Here’s how a notes app does it, step by step, running live in your browser with WebCrypto.

  1. a passphraseonly you know it

  2. a keyPBKDF2, 600,000 rounds, on your device

  3. a noteas you write it

  4. what the server storesAES-256-GCM: noise without the key

Nothing here is sent anywhere. Change the passphrase or the note and watch the bottom box.

Where I use this

My notes live in Plim, which works this way. It also lets me connect Claude to the notes I choose, and build my own small apps with my notes as the backend.

End-to-end encryption isn’t about secrets: it’s that your data stays yours. A server that can’t read your notes can’t sell them, mine them for ads, train on them, or leak them in a breach.