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.

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. 1 · This device

    You save a tab

    Trip to Kyoto 12 tabs · note: book the 9:40 train
  2. 2 · Encrypt, on the device

    AES-256-GCM

    vault key · fresh nonce bound to vault / table / id
  3. 3 · Larksail’s server

    Stores ciphertext only

    AWq8Hc0t1mZr9kX2vQ… not opened · not searched · not merged
  4. 4 · Your other computer

    Decrypts, locally

    Trip to Kyoto 12 tabs · note: book the 9:40 train
One synced record, start to finish. The server keeps and returns encrypted bytes, plus what it needs to route them: which vault and record, when it changed and how big it is.

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.

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.

  1. What and whereThe extension version (Settings → General), the browser, or the address on the sync service.
  2. How to reproduce itSteps, a proof of concept, or a short video — whatever shows it best.
  3. What it could lead toYour take on the impact helps us fix the worst things first.
  4. Stay on your own dataTest with your own accounts and devices; don’t access or change anyone else’s.