Architecture Walkthrough How zero-knowledge transfers work
Walk through FileFerry Container v1: 256-bit #k= URL-fragment keys, 5 MiB STREAM AES-256-GCM chunks, atomic burn-after-download leases, and constant-memory streaming decryption.
256-bit secret stays in #k=
When you drop files into the Cargo Bay, your browser generates a fresh
256-bit random secret (43
base64url characters). Using HKDF-SHA-256 salted with the
transfer ID, it derives non-extractable keys for metadata, chunk payloads, a non-secret
download proof (K_auth), and a 4-word BIP-39
fingerprint.
https://fileferry.app/d/<id>#k=<never sent over HTTP>
5 MiB authenticated chunks
Every file, filename, MIME type, folder structure, and optional note is encrypted in a Web
Worker using AES-256-GCM before upload. Each
5 MiB chunk binds its transfer ID, chunk index, and final-chunk flag
into both its 12-byte nonce and AAD — making chunk reordering,
truncation, or cross-transfer substitution cryptographically impossible.
Link previews never burn files
Messaging apps and link unfurlers cannot read #k= and never decrement your
download counter. Reading encrypted metadata requires proof of K_auth (constant-time checked, locked and burned after 10 invalid attempts).
Starting a download reserves an atomic PostgreSQL lease so multi-gigabyte transfers finish cleanly
even on the final slot.
Constant-memory decrypt & wipe
Recipients decrypt and verify each 5 MiB chunk before a single byte is
written to disk — directly via the File System Access API on Chromium, or via a zero-cache streaming
Service Worker on Firefox and Safari. Multi-file drops support both on-the-fly streaming ZIPs
and single-file random-access downloads. Once downloads hit the cap or expiry passes, ciphertext
is wiped immediately.
What your browser sees vs. what the server sees
Strictly client-side (never transmitted)
- • Master secret (
#k=) and optional passphrase - • File contents and streaming plaintext bytes
- • Filenames, MIME types, and folder paths
- • Optional sender notes and file counts
- • 4-word BIP-39 verification code
Server-side while live (wiped on burn/expiry)
- • Opaque random transfer ID
- • Authenticated ciphertext chunks + encrypted manifest
- • Total ciphertext byte size and chunk count
- • SHA-256 hashes of
K_auth and early-burn token - • Download count/cap and expiry timestamp