Encrypted notes: what the server can and cannot see
Updated
When you save notes to the RichMarkdown cloud, they are encrypted in your browser before they leave it. The key comes from your password, and neither the password nor the key is sent to us. This page says exactly how that works and where its limits are.
- Without an account, notes never leave your browser.
- With cloud save, the server holds your email, a hash used to sign you in, and your notes as ciphertext.
- We cannot reset your password; a recovery code, shown once when you register, lets you set a new one. A shared note is not encrypted.
How it works
- Two keys from one password. Your browser runs the password through PBKDF2-SHA256 with 310,000 rounds and gets two separate keys.
- The sign-in key goes to the server. The server stores only a salted hash of it. It proves you know the password; it cannot decrypt anything.
- The encryption key stays in your browser. It is never sent. Signing out removes it from the browser.
- Notes are encrypted with AES-256-GCM. All notes, titles included, are compressed, encrypted and uploaded as one block of ciphertext.
What the server stores
| Stored | Readable by us? |
|---|---|
| Your email address | Yes. It is your account name. |
| A salted hash of the sign-in key | It is a hash. It is not your password and cannot decrypt notes. |
| Your notes and their titles | No. Ciphertext only. |
| The encryption key, wrapped with a key made from your recovery code | No. It opens only with the code, which we never receive. |
| The size of the encrypted copy and when it was saved | Yes. |
| Sign-in sessions, and short-lived counts of sign-in tries by IP address and email (to slow down password guessing) | Yes. |
| A note you shared as a link | Yes. A shared page is a readable copy of that one note. |
What this does not protect against
- A weak password. Anyone who guesses the password can sign in and decrypt. The minimum is 10 characters; a long phrase from a password manager is better.
- Someone using your unlocked computer. The notes are readable in your own browser, signed in or not.
- Shared links. Sharing a note publishes a readable copy to anyone who has the link. Your other notes stay encrypted.
- The code the site sends. As with every web app that encrypts in the browser, you rely on the page doing what it says. The editor script is not hidden: you can read it in your browser's developer tools.
Forgotten password: the recovery code
A reset link by email works when the service can read your data without your password. Here it cannot, so we cannot reset anything for you. Instead, your browser makes a recovery code when you register and shows it once. The encryption key is stored on the server a second time, wrapped (encrypted) with a key made from that code. We keep only a hash that proves the code, not the code itself, so the wrapped key is as unreadable to us as the notes.
With the code you can set a new password: your browser opens the wrapped key, re-encrypts the notes with a key made from the new password, and replaces everything on the server in one step. Other devices are signed out. You can make a new code on the account page; the old one then stops working.
If both the password and the code are lost, the cloud copy cannot be decrypted by anyone. The notes in your browser are still there: create a new account and save them again.
Deleting everything
The account page has Delete account and cloud notes. It removes the account, the encrypted notes and every shared page from the server. Notes in your browser stay until you remove them there.
Related guides
FAQ
Are my notes end-to-end encrypted?
Notes saved to the cloud are encrypted in your browser with AES-256-GCM, using a key made from your password. The server never receives the key.
Can I use the editor without any upload?
Yes. Without an account nothing is uploaded: notes are stored only in your browser.
Is a shared note encrypted?
No. A shared link is a public, readable copy of that one note. Stop sharing and the page is deleted.
What happens if I forget my password?
Set a new one with the recovery code you were shown when you registered. Without the password and the code, the cloud copy cannot be decrypted. Notes in your browser are unaffected.
Can I delete my data?
Yes. Delete account on the account page removes the account, the encrypted notes and all shared pages.