Security
Private by design. Encrypted when it travels.
Larksail keeps your library on your computer. If you turn on sync, it’s encrypted on your device before it leaves. Turn on end-to-end encryption — one switch, free — and only your devices hold the keys.
- Works without an account
- No trackers, no remote code
- Encrypted sync, end-to-end optional
- Sync is optional, in preview
01 The baseline
Safe before you sign in to anything.
Most of what keeps your data safe isn’t encryption — it’s the data never leaving. That’s how Larksail works out of the box.
-
Local-first by default
Collections, notes, the archive and settings live in your browser’s own storage. Larksail works fully without an account, and nothing leaves your computer unless you turn on a feature that needs to.
-
No tracking, analytics only if you opt in
No crash reporting, ads or trackers in the extension. The only usage data it can send is a weekly report of anonymous counts — off unless you turn it on, never addresses, titles or notes, with no id that links one week to the next. This site sets no cookies and loads no trackers — it only counts visits per page, with nothing that identifies you. We don’t know which pages you save, and we’d rather keep it that way.
-
No remote code
Everything that runs ships in the extension package the stores review. No scripts, fonts or images are loaded from anywhere; page icons come from the browser’s local cache.
-
Permissions only when needed
Site access, bookmarks, history and downloads are optional. Each is asked for in the click that needs it, with a line on why — and the feature waits until you say yes.
-
Built on Manifest V3
The current extension platform in Chrome and Firefox. Its content security policy forbids inline and remote scripts on every page of the extension, and the stores review each version.
-
Nothing silently lost
Every automatic close, move or merge goes through an action log with Undo, and closed tabs go to the archive. Automatic backups to your Downloads folder are one switch away.
02 Sync
Encrypted first. End to end, one switch away.
Sync is opt-in and part of Pro. Records are encrypted on your device with the browser’s own WebCrypto, sent over TLS and stored as ciphertext in the EU. By default (Standard) we keep a sealed copy of your key so you can’t get locked out; with end-to-end on, they open only on devices you’ve approved.
- 1 · This device
You save a tab
Trip to Kyoto 12 tabs · note: book the 9:40 train - 2 · Encrypt, on the device
AES-256-GCM
vault key · fresh nonce bound to vault / table / id - 3 · Larksail’s server
Stores ciphertext only
AWq8Hc0t1mZr9kX2vQ… not opened · not searched · not merged - 4 · Your other computer
Decrypts, locally
Trip to Kyoto 12 tabs · note: book the 9:40 train
03 Keys
Your devices hold the keys. We hold boxes.
In Standard, our server holds one box it can open, to let your own devices in — so a forgotten password never locks you out. With end-to-end on, the model is the one password managers use: your password unlocks your data without ever reaching us, and trusted devices and a recovery key are the other ways in.
-
A key pair for each device
Each browser makes its own key pair: X25519 and ML-KEM-768 side by side. The X25519 private key is created non-extractable inside WebCrypto, and the ML-KEM key is kept sealed under another non-extractable key — even our own code can’t read either out.
-
An account key, sealed per device
Your account has a key pair too, X25519 and ML-KEM-768. Its private key is stored on the server only sealed: once for each trusted device, once for a key made from your password on your device, and — depending on your setting — once for our server’s key (Standard) or once for your recovery key (end-to-end).
-
A data key per vault
Your library is a vault with its own random AES-256-GCM key, sealed for your account key. Per-vault keys are what let a team space have members without re-encrypting everything.
-
Standard: our server is one more device
The sync server has its own key pair, X25519 and ML-KEM-768; the private key is kept as a secret outside the database. By default your account key is also sealed for it, so when you sign in on a new browser or the web app, the server opens that box and seals the key for the new device. No recovery key, no approving, and a password reset by email keeps your library. It means we could read your synced data; we use the key only to let your devices in.
-
End-to-end: one switch, new keys
Turn on end-to-end in Settings → Sync → Encryption, free. It’s a key change: a new account key and new vault keys, sealed only for your devices, your password and a new recovery key, while the server’s box is deleted in the same step. Your library and cloud backups are then encrypted again with the new keys. Turning it off seals your current key for the server again.
-
Your password unlocks, without reaching us
Your password never leaves your device: it becomes two keys there. One signs you in; the other unlocks your data on a new browser and is never sent. With end-to-end on, you can also approve a new browser from one you already trust — both screens show the same six-digit code first.
-
A recovery key, shown once
With end-to-end on: 256 random bits as 52 easy-to-type characters. It can unlock your account if every device is gone. We never see it — so if you lose it, your password and every device, nobody can decrypt your data. Not even us.
-
Change keys after a lost device
Remove a device and it’s signed out at once. Then change the keys: new vault and account keys for the devices you keep, a new recovery key, and the old one stops working.
04 Spec sheet
The algorithms, in one table.
Standard, well-studied primitives from the browser’s WebCrypto, and Argon2id for your password — nothing invented here beyond how the pieces are framed.
| What | Algorithm | Detail |
|---|---|---|
| Records | AES-256-GCM | Each record encrypted under its vault key, with a fresh 96-bit random nonce every time. |
| Binding | AES-GCM associated data | Each ciphertext is bound to its vault, table and record id — moved or swapped by the server, it fails to decrypt. |
| Images | AES-256-GCM | Board images and covers sync as encrypted blobs, bound to vault, kind and id, tagged with the key version. |
| Files | AES-256-GCM, a key per file | Each file gets its own random key, kept only inside its encrypted record. Cut into 8 MB parts, each bound to the file and its place, so parts can’t be swapped or reordered. The server never sees a name or a type. |
| Cloud backups | AES-256-GCM | Encrypted on your device under your vault key before upload; when you switch to end-to-end they’re encrypted again, so none stays under a key the server could open. |
| Published pages | Argon2id or a link key → AES-256-GCM | Private by default. Password: sealed under Argon2id of the password. Anyone with the link: a 256-bit key carried in the link’s #fragment, which browsers never send to us — in Standard, also sealed for the server key, so the link needs no #fragment. Public only when you pick it — then readable by anyone with the address. |
| Shared copies and file links | AES-256-GCM, link key | A 128-bit link key (HKDF-SHA-256 to the AES key). With end-to-end on, it travels only in the link’s #fragment and the link’s id is a hash of it; in Standard it’s also sealed for the server key, so the link is short. With a password (Pro), it needs both the link and PBKDF2-SHA-256 of the password (600,000 rounds). Expiring links are deleted when they expire. |
| Device keys | X25519 + ML-KEM-768 | One pair per browser; neither private key can be read out by any script, and neither leaves the device. |
| Account keys | X25519 + ML-KEM-768 | The private key exists on the server only sealed for your trusted devices, your password’s unlock key, the recovery key if you have one, and — in Standard only — the server key. |
| Server key | X25519 + ML-KEM-768 | Standard only. Kept as a server secret, never in the database or logs; opens the server’s box to let your own signed-in devices in, and a Standard short link’s key for whoever opens the link. With end-to-end on, there is no server box and links carry their own key. |
| Team spaces | Per-space vault keys | Standard by default: the space’s key is also sealed for the server key, so members get in as soon as they join. An owner can switch the team to end-to-end; then members are let in by an owner or admin after comparing a safety code. |
| Password | Argon2id (64 MiB, 3 passes) → HKDF-SHA-256 | Derived on your device. One half signs you in (we store only a hash of it); the other unlocks your data and never leaves. At least 10 characters, common passwords refused. In Standard a reset by email keeps your library; with end-to-end on, it unlocks nothing. |
| Key sealing | X25519 + ML-KEM-768 → HKDF-SHA-256 → AES-256-GCM | Hybrid post-quantum: each sealed box uses a fresh X25519 key pair and a fresh ML-KEM-768 encapsulation (FIPS 203), and the key comes from both — so a box stays shut unless both are broken, and a copy of our database taken today stays sealed against a future quantum computer that breaks X25519. What the box is for is bound in, so one can’t pass for another. |
| Recovery key | 256-bit random | Crockford base32, 52 characters. Turned into a wrapping key with HKDF-SHA-256. |
| Pairing code | SHA-256 | With end-to-end on: six digits derived from the new device’s public key, compared on both screens before approving. |
| Implementation | WebCrypto + Argon2id + ML-KEM | The browser’s built-in cryptography, plus two open-source libraries for what browsers don’t have yet: Argon2id (hash-wasm, MIT; loaded only when you type your password) and ML-KEM (@noble/post-quantum, MIT; loaded only when keys are made or sealed). No homemade primitives. |
| Format | Versioned | Every payload starts with a format byte, so the scheme can evolve without guesswork. |
05 The server
What we can see, and what we can’t.
The sync service runs on Cloudflare Workers with a Neon Postgres database. It routes and stores encrypted records and never reads, searches or merges them — merging happens on your devices. In Standard it holds a key that could open them, used only to let your devices in; with end-to-end on, it can’t.
The server sees
- Your email address, to sign you in
- Your devices: a name like “Chrome on macOS”, their public keys, when each was last seen
- Per record: which vault and table it’s in, its id, a version number, when it changed and from which device
- How big each encrypted record, image, file and backup is — and how much of your storage that uses
- Sealed key boxes — in Standard, one it can open, used only to let your devices in
Never opened on our server
- Titles, addresses and favicons of saved tabs
- Collection and space names, notes, tags and highlights
- The images on your board, your files and their names
- Your backups, and pages you publish with a password or as a link
- Your password, your recovery key, or your devices’ private keys
- Everything that doesn’t sync at all: the archive, saved page copies, full-page snapshots and AI chats
Honest status: sync is a preview
Sync is off by default and still in preview — it may change, and it isn’t a backup. The encryption design and code haven’t had an outside security and cryptography review yet; one is planned, and we’ll publish what it finds. Until then, keep your own backups (Settings → Data), and read our privacy policy for the full list of what leaves your device and when.
Report a vulnerability
Found something? Tell us first.
If you believe you’ve found a security problem in the extension, the sync service or this site, email us. Please give us a chance to fix it before you share it publicly. Every report is read by the people who build Larksail.
- What and whereThe extension version (Settings → General), the browser, or the address on the sync service.
- How to reproduce itSteps, a proof of concept, or a short video — whatever shows it best.
- What it could lead toYour take on the impact helps us fix the worst things first.
- Stay on your own dataTest with your own accounts and devices; don’t access or change anyone else’s.