AES-256-GCM, ML-KEM-768 + X25519
How your writing is protected
Typdit encrypts your writing in your browser before saving it. The server keeps only ciphertext without the key, so even Typdit's operator cannot read it.
The encryption
| Titles, text, versions | AES-256-GCM with a fresh 256-bit key per document. Each ciphertext is bound to its document and purpose, so it will not open if moved elsewhere. |
|---|---|
| Document keys | Wrapped with your account's vault key (256 random bits). The vault key lives only in the memory of the open tab. |
| Opening the vault key | Your passphrase (scrypt, N=2^17, r=8, p=1), the recovery key you got at setup (256 bits) or a passkey (WebAuthn PRF). |
| Link sharing | Each share locks a copy with a new 256-bit key that lives only after the # in the address. Add a password and it is needed too. |
| Account sharing | X-Wing (ML-KEM-768 + X25519) with the recipient's public key makes a key only they can open. |
| Methods you can choose | For your writing, choose AES-256-GCM (default), XChaCha20-Poly1305 or both in turn. For your receiving key, choose X-Wing (default) or ML-KEM-1024 + P-384. The method is written at the start of each ciphertext, so the opening side recognizes it automatically. |
What the server sees
What reaches the server
- Ciphertext (titles, text, versions, shared writing)
- Your account (email, display name), how many documents and versions, ciphertext sizes and times
- Your wrapped vault key, the settings that turn your passphrase into a key, passkey identifiers
- Share link expiry times, and who sent what to whom between accounts
- Your receive code, display name and public key for receiving
- The methods you chose (the method name at the start of each ciphertext)
What never reaches the server
- The plain text of your writing and titles
- Your passphrase, recovery key and passkey secrets
- Your vault key and document keys
- Share link keys (after the # in the address)
Quantum computers and this design
Symmetric AES-256 is generally considered to keep a 128-bit security margin even against quantum speedups (Grover's algorithm).
For public keys we use ML-KEM-768, standardized by the US National Institute of Standards and Technology (NIST) in 2024 as FIPS 203, together with the established X25519 (X-Wing), so shared writing stays closed unless both are broken.
For a larger margin, switch your receiving key in security settings to ML-KEM-1024 + P-384 at NIST's highest security category 5.
So Typdit's encryption is designed to withstand quantum computers. A short or common passphrase can be guessed even without one, so make it long.
What we do not promise
- If you lose both your passphrase and your recovery key, your documents cannot be opened. The server has no key either.
- If someone uses your unlocked device or it has malware, what is visible there cannot be protected. The vault locks after 30 minutes without use.
- As a web app, your browser runs the code the Typdit server sends. If that code changed, writing could leak before encryption. That is why the encryption uses public libraries and every change is recorded in the repository.
- Anyone with a share link can read it. Downloaded files and printouts are not encrypted.
- The operator can see the information under "What reaches the server" (who saved how much and when, and who sent to whom).
Libraries
- WebCrypto
- The browser's built-in AES-256-GCM.
- @noble/hashes
- scrypt and HKDF-SHA256. Independently audited by Cure53 in January 2022, with scrypt and HKDF in scope.
- @noble/curves
- X25519. Independently audited, including by Cure53 in September 2024.
- @noble/post-quantum
- ML-KEM-768, X-Wing and ML-KEM-1024 + P-384. Not independently audited yet; its author self-audited version 0.6.1 in April 2026. That is why it is combined with the audited X25519.
- @noble/ciphers
- XChaCha20-Poly1305. Independently audited by Cure53 (September 2024).
Questions
- Can Typdit staff read my writing?
- No. The server holds only ciphertext, and the key comes only from your passphrase, recovery key or passkey.
- What if I forget my passphrase?
- Open the vault with your recovery key and set a new passphrase. If you lose the recovery key too, your documents cannot be recovered.
- What about documents I wrote before?
- Documents written before encryption are still plain text. Encrypt and move them from Older documents in the editor, then delete the plain copy.
Lock your first note
Open the editor