CryptPad: Self-Hosted Encrypted Docs Your Server Can't Read

CryptPad: Self-Hosted Encrypted Docs Your Server Can't Read

Self-hosting your documents fixes one problem: your files no longer sit on a big provider's servers. It leaves another one untouched. Whoever runs the server, whether that's you, a colleague with root, a hosting company or someone who stole a backup, can still open every document on it.

CryptPad takes a different approach. Documents are encrypted in the browser before they leave it, so the server only ever stores data it can't read. Here's how that works, what it costs you in convenience, and what to know before you run it for a team.

What CryptPad Is

CryptPad is an open-source collaboration suite under the AGPL-3.0 license, developed by the XWiki team in France. It covers the tools most teams need day to day: rich text documents, spreadsheets, presentations, code, forms, kanban boards, whiteboards and diagrams, all with real-time co-editing and a shared drive.

The project has had a busy autumn. Release 2026.10.0 (October 21) shipped a full rewrite of the server for better scalability, and moved the office apps from OnlyOffice to Euro-Office 9.3. Release 2026.10.1 (November 10) followed with security fixes rated up to 7.3 (High), and the project asks administrators to update as soon as possible.

How "Your Server Can't Read It" Actually Works

The core trick is simple and clever. When you open a document, its URL looks something like this:

https://cryptpad.example.com/pad/#/2/pad/edit/k3Y...secret.../

Everything after the # is the URL fragment, and browsers never send the fragment to the server. CryptPad derives each document's encryption key from that part of the link. Your browser encrypts every change before sending it, and the server stores and relays encrypted data to the other editors, who decrypt it locally.

Accounts work the same way. Your username and password never leave the browser either. They're used to derive the keys that unlock your drive, which holds the links to all your documents.

The result: a database dump, a stolen backup or a curious admin gets ciphertext, not your board minutes.

The Honest Trade-Offs

Strong encryption has real costs, and you should know them before rolling it out:

Trade-off What it means in practice
No password reset Administrators can't view, retrieve or reset a lost password. Documents that weren't shared with anyone else are gone.
Links are keys Anyone with an edit link can edit. Pasting it in a public chat is like handing out the key.
Metadata is still visible The server can't read content, but it still sees connections, timing and the size of encrypted data.
You trust the code delivery Like every web-based encryption tool, the browser runs the code the server sends. Encryption protects you from data leaks, not from a server that has been modified to serve malicious code.

The password point is the one that will actually bite. Plan for it on day one: ask people to use a password manager, and make sure important documents live in a shared team drive, not only in one person's account. And if someone is still logged in and wants to move to a new account, they can transfer their documents with the Restore option in the drive settings.

What Self-Hosters Need to Know

You need two domains. CryptPad's security relies on a sandbox. The main domain handles the sensitive cryptographic work, and the user interface runs on a second domain with strict Content-Security-Policy headers. In the configuration, they're httpUnsafeOrigin (main) and httpSafeOrigin (sandbox), and they must be different. The admin guide warns that running in production without the sandbox may put users' information at risk.

// config/config.js
httpUnsafeOrigin: 'https://cryptpad.example.com',
httpSafeOrigin: 'https://sandbox.cryptpad.example.com',

Both need DNS records and TLS certificates, and your reverse proxy has to route both to CryptPad.

Use the checkup page. After installing or upgrading, open /checkup/ on your instance. It runs a series of tests on your configuration, headers and domains, and tells you exactly what's wrong. The release notes ask administrators to review it after every upgrade.

Read the upgrade notes, especially now. If you're coming from a version older than 2026.10.0, the new server changes some configuration. The project asks you to read the notes for every version between yours and the latest.

Teams can use SSO. An SSO plugin is available for organizations that want logins tied to their identity provider.

Who Should Use It

CryptPad is a great fit when confidentiality matters more than convenience: legal and HR documents, board papers, journalism, healthcare, NGOs working with sensitive sources, or any team that wants to be able to say "even we can't read it" and mean it.

It's a weaker fit if you need server-side search across every document, deep integrations with other tools, or easy account recovery for less technical staff. For a general file sync and office platform, a conventional suite is easier. Many teams run both: CryptPad for the sensitive work, something else for the rest.

Running It on Elestio

CryptPad on Elestio starts at $11/month for the VM, with SSL, backups, monitoring and updates handled. Backups are worth a closer look here: they contain only encrypted data, which is exactly the point, but it also means a backup can't bring back a document whose owner lost their password. After deploying, run the checkup page before inviting your team.

Troubleshooting

The checkup page reports sandbox errors. The two origins are identical, or one of them isn't reachable with a valid certificate. Check DNS, TLS and your proxy routing for both domains.

Office documents won't open after an upgrade. The office apps changed to Euro-Office in 2026.10.0. Follow the upgrade steps in the release notes fully, including the office installation step, then hard-refresh the browser.

A user forgot their password. There's no reset. If they're still logged in somewhere, they can export or move their documents now. Otherwise, only documents shared with other users or teams can be recovered.

Collaborators see a blank or broken page. Browser extensions that block scripts or third-party frames often interfere with the sandbox domain. Try a private window without extensions.

Thanks for reading ❤️ See you in the next one 👋