How browser encryption actually works in a private notepad
Disclosure: I built the notepad this article is about β Outsmart Notes. It comes up once, at the end, because the encryption design below is the one I shipped.
Most notes apps encrypt your notes "in transit and at rest", which sounds thorough until you ask the obvious question: at rest where, and who holds the key? If the server holds the key, the server can read your notes. The encryption protects you from everyone except the people running the service β which is exactly the party a private notepad should protect you from.
There is a stricter design: encrypt in the browser, with a key the server never sees. Here is how that actually works, and where it breaks.
1. The key never leaves the device
The vault is locked with a password you choose. That password is never sent to the server. Instead, the browser runs it through PBKDF2 β 100,000 iterations β to derive an encryption key.β¦