Blog

What encrypted at rest protects, and what it doesn't

Our storage provider encrypts your files, and Nemi separately encrypts what you write, from documents to chat, before saving it to our database. That protects you from a leaked backup or a stolen dump. It doesn't protect your data from us, because our servers hold the key. Only a Vault is built so we can't read it. Type a sentence below to see both halves in action.

Security9 min read

Fig. 0AES-256 on what you write, before it is stored

Almost every security page on the internet promises that your data is encrypted at rest. That's true and worth having, but it answers a narrower question than most people expect. It answers: what happens if someone gets a copy of the data? It doesn't answer: who else holds the key?

This post spells out where Nemi draws that line. We'll cover what we encrypt, how it works, why some fields stay readable on purpose, and the one place in Nemi where we can't read your work at all.

What does encrypted at rest actually mean?

Data is at rest when it sits on a disk, in a database, or in a backup. Encrypting it at rest means storing it as ciphertext, so turning it back into readable text requires a key. That protection is only as strong as the separation between the ciphertext and the key. If both sit in the same place, stealing one steals the other.

So the honest version of the phrase always has a second half: someone still holds the key. For most services, including Nemi outside a Vault, that someone is the service itself, because the servers have to read your data to do useful work with it.

What does Nemi encrypt, and who holds the key?

The files you upload live with our storage provider in Amsterdam, which encrypts every object with AES-256 and manages those keys. That protects the physical disks in their data centres. It doesn't hide a file from someone holding valid storage credentials, because the provider decrypts for anyone authorised to ask.

What you write gets a second layer of our own. Documents, sheets, canvases, forms, form responses, comments, chat in rooms and meetings, Nemi AI conversations, calendar notes, and link messages are all encrypted by our server before hitting the database. Forty database columns go through this layer. The key lives in the server's environment, never in the database itself, so a stolen database dump or backup only contains ciphertext.

One sentence, from your keyboard to a backup

Editoryour wordsNemi serverholds the keyDatabaseenc1:k1:9fQ2...Backupenc1:k1:9fQ2...

1/4You type in a document

The editor sends your words to our server over TLS, like any other request.
The second layer, step by step. The encryption happens inside our server, between the editor and the database, so every copy made of the database afterwards inherits it.

Why does the same sentence never encrypt the same way twice?

Try it below. This demo runs the same encryption our server uses, right in your browser, using a throwaway key generated on this page. Edit the text, save the exact same words again, and watch the stored value change completely.

Encrypt a sentence the way Nemi stores it

Where it is saved

What a stolen backup holds

Title
Team notes
Content
encrypting...

What you see in Nemi

Title
Team notes
Content
Q3 is down 4 per cent. Tell the team on Monday, not before.
Bytes you wrote
59
Characters stored
0
Random IV per save
12 bytes
AES-256-GCM with a 12 byte random IV, a per column key derived with HKDF, the column's name as authenticated data, and the same stored format our server writes. It runs on your browser's WebCrypto with a throwaway key; nothing you type leaves this page.

The highlighted characters at the start are the IV (initialisation vector): twelve random bytes generated fresh for every write. AES-GCM mixes them into the encryption so the same words under the same key never produce the same ciphertext. Without that, two people writing the same sentence would leave identical ciphertext behind, letting anyone with a copy spot matches or test guesses against short values.

The last button demonstrates the second guard. Each column gets its own key, derived from the master key plus the column's name, and that name is bound into the ciphertext as authenticated data. Move a value from comments into a document and it fails loudly instead of opening. GCM's authentication tag also catches tampering: flipping even a single bit makes decryption fail rather than returning garbled text.

40

database columns encrypted this way

12 bytes

of fresh randomness in every single save

256 bits

key length, with a separate key for each column

That random IV comes with a deliberate tradeoff. Databases find rows by comparing stored values: checking whether a title matches or starts with certain letters. When the same word encrypts differently every time, there's nothing to compare. The database can't search, sort, or match an encrypted column; anything that reads it has to decrypt it on the server first.

That's why file, folder, and document names, along with calendar titles and locations, aren't encrypted this way. You search and sort by them constantly, and doing that over ciphertext would mean decrypting an entire workspace for one query. They're protected by access controls and server security instead, as our privacy policy states. If a file's name is itself sensitive, put it in a Vault.

Why are tokens hashed instead of encrypted?

Some stored values aren't content at all, they're credentials: invitation tokens, upload link tokens, or persistent device sessions. Encryption is the wrong tool here because it's reversible by design. Whenever a token never needs to be shown to you again, we store only its SHA-256 hash. When it's presented, the server hashes the incoming value and looks it up. A leaked table only yields hashes, which unlock nothing.

A fast unsalted hash would be unsafe for human-chosen passwords, since attackers can guess common ones. These tokens are server-generated random values of 128 bits or more, so there are no likely candidates to guess. Link passwords are stored as one-way hashes too. The same one-way approach is how share link statistics count visitors without storing IP addresses.

So who can read my data?

This is the part most security pages skip. Pick a scenario below to see what each party could actually read.

Who is looking, and what they can read

Someone walks off with a copy of our database: a leaked backup, a dump, a replica, or rows read through a software bug. They have the data, not the key.

  • Documents, sheets, canvases and forms

    Encrypted before it was written.

    Ciphertext

  • Form answers, comments, chat, Nemi AI conversations

    The same.

    Ciphertext

  • Names of files, folders and documents, calendar titles and places

    Kept plain so they can be searched and sorted.

    Readable

  • Invitation, upload link and device tokens

    Only a hash of each is kept, and a hash opens nothing.

    A hash

  • Your uploaded files

    Files live in file storage, which isn't backed up.

    Not in it

Each line restates the privacy policy and the security page. Where they and this figure ever disagree, they are right.

The middle case is the important one to understand clearly. Our servers hold the key because they need to read your content to save collaborative edits, run search, convert and preview files, serve published links, and power Nemi AI.

So encryption at rest protects your content from a leaked or stolen copy of our data. It doesn't protect it from us, and we could still be legally compelled to hand it over. Inside a workspace, which teammates can change what is a separate question, enforced by a role check on every write.

Encryption at rest answers what happens to a stolen copy. It doesn't answer who holds the key.

Is end to end encryption the same as encryption at rest?

No, and the difference is who holds the key. Outside a Vault, your files and written content are encrypted at rest with the key on our servers, while names and titles stay unencrypted. A Vault folder is end-to-end encrypted, and it's the only part of Nemi that is.

Your browser generates the Vault key and unlocks it with your passkey or passphrase. Files and their real names are encrypted on your device before upload, so we only ever receive ciphertext we can't open, even with full database and storage access. Adding a member happens on an existing member's device, which re-encrypts the key for them. We only relay the result and can't add ourselves.

That guarantee comes with real tradeoffs:

  • We can't generate previews or thumbnails, convert, compress, or scan a Vault file for malware, because all of those require reading it.
  • We can still see that the folder exists, how many files it holds, their sizes and dates, and who its members are.
  • If you lose your passkey or passphrase and your recovery code, the files are gone for good. We can't recover them.

That's why Vault is a folder you pick for contracts, passport scans, and anything that must never leak, rather than the default for everything. See the Vault page for what it's built for, the help centre for setup steps, and the security page for how we protect everything outside a Vault.

Questions people ask

What does encrypted at rest mean?

Data is at rest when it sits on a disk, in a database, or in a backup. Encrypted at rest means it's stored as ciphertext, so reading it requires a key. That protects a copy of the data if it ends up in the wrong hands. It doesn't tell you who holds the key, which is usually the service itself.

Is end to end encryption the same as encryption at rest?

No. With encryption at rest, the service encrypts your data and holds the key, so its servers can still read it. With end-to-end encryption, your own devices create and hold the key, so the service only ever sees ciphertext. In Nemi, your files and written content are encrypted at rest, names and titles aren't, and only a Vault folder is end-to-end encrypted.

Can Nemi read my files and documents?

Outside a Vault, yes. Our servers hold the key because they need to read your content to save edits while you collaborate, search, preview, convert, and serve published links. Encryption at rest protects your data from a leaked or stolen copy, not from us. Inside a Vault folder, the key never reaches us, so we can't read the files or their real names.

Is encryption at rest enough to protect my data?

It's worth having, because a stolen disk, dump, or backup is useless without the key. It doesn't stop the service itself, an attacker who compromises its running servers, or a legal order compelling disclosure. For files that must stay unreadable to everyone except you and the people you choose, you need end-to-end encryption, which in Nemi is a Vault.

Why are file names not encrypted in Nemi?

An encrypted column can't be searched or sorted by the database, because the same word encrypts differently every time. File, folder, and document names, along with calendar titles and locations, are searched and sorted constantly. They stay readable and are protected by access controls and server security instead. If a file's name is itself sensitive, put it in a Vault, where the real name is encrypted on your device.

Is AES-256 encryption secure?

AES-256 is the standard for encrypting stored data and has no known practical attack. Nemi uses it in GCM mode with a fresh random value on every save and a separate key per column, so tampered data fails to open instead of silently decrypting wrong. The real weak point of any encryption is where the key lives, which is what most of this post is about.

What happens if I lose my Vault passkey?

If you lose your passkey or passphrase and don't have your recovery code, the files in that Vault can't be recovered by you or by us. That's the direct tradeoff of the key never reaching Nemi. Keep your recovery code somewhere safe when you set up a Vault.

Where the numbers come from

  • Field encryption: AES-256-GCM, 12 byte random IV, per column subkeyslib/field-crypto.ts (encryptField, decryptField)
  • Encrypted column types and why they cannot be searched in SQLlib/db/encrypted-columns.ts
  • The 40 encrypted columns, counted on 3 October 2026lib/field-crypto-backfill.ts (ENCRYPTED_COLUMNS)
  • Bearer tokens stored as SHA-256 hasheslib/token-hash.ts (hashToken)
  • Vault: keys made and held on your devicelib/vault/crypto.ts
  • What we can and cannot read, stated in full/privacy
  • Storage provider encryption and backups/security

Use the thing we write about.

Files, docs, sheets, mail, photos, calendar and meetings in one account, built the way this post describes. Nemi is opening in groups: put your name down and we tell you when yours is up.

15 GB free when you get in. No card needed.