Menu

How browser encryption actually works in a private notepad
πŸ“°

How browser encryption actually works in a private notepad

DEV Community: productivityΒ·Vigor GuyΒ·7 days ago
#z1teAFh1
#devtoproductivity#devto#dev#notes#server
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.