RichMarkdown › Encrypted notes: what the server can and cannot see

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.

In short

How it works

  1. Two keys from one password. Your browser runs the password through PBKDF2-SHA256 with 310,000 rounds and gets two separate keys.
  2. 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.
  3. The encryption key stays in your browser. It is never sent. Signing out removes it from the browser.
  4. 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

StoredReadable by us?
Your email addressYes. It is your account name.
A salted hash of the sign-in keyIt is a hash. It is not your password and cannot decrypt notes.
Your notes and their titlesNo. Ciphertext only.
The encryption key, wrapped with a key made from your recovery codeNo. It opens only with the code, which we never receive.
The size of the encrypted copy and when it was savedYes.
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 linkYes. A shared page is a readable copy of that one note.

What this does not protect against

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.

Open the free editor