Cryptographic core
The algorithms, the parameters, the code.
Published so that “zero-knowledge” is something you can read rather than something you are told.
The algorithms
What runs on your device, with the parameters.
Names and numbers, not adjectives. Every line points at the source file that does it.
| What | How | Where |
|---|---|---|
| Your master key | Argon2id (m = 19 456 KiB, t = 2, p = 1) over your password and a per-account salt; with an Emergency Kit, the recovery code is mixed in through HKDF-SHA-256. | crypto.ts |
| Your vault key | A random AES-256-GCM key, wrapped under the master key. Only the wrapped form leaves your device. | crypto.ts |
| Messages | A random per-message AES-256-GCM key; the content and the title are encrypted with it; the key is wrapped to you (under the vault key) and to each person it is for. | crypto.ts, metadata.ts |
| Sealing a key to a person | Hybrid: ECDH P-256 and ML-KEM-768 (post-quantum) → HKDF-SHA-256 → AES-256-GCM. A stolen Keycard opens only what was sealed to it. | crypto.ts |
| Documents | A random per-file key; the file is encrypted in chunks with AES-256-GCM (a nonce prefix plus a counter); file name and type sealed under the vault key. | files.ts |
| Labels | Names of people and guardians, vault labels and titles: AES-256-GCM under the vault key, or the message's own key for message titles. | metadata.ts |
| The Map and instructions | One Map key per owner, wrapped to the owner and to each executor; each set of instructions has its own key. | estateMap.ts, handoffSeal.ts |
| Seed phrases | BIP-39 validation, then Shamir’s Secret Sharing over GF(2⁸): any k of up to 16 shares rebuild the entropy; share text is base32 with a CRC-16. | shamir.ts, seedSplit.ts |
| Guardian recovery | A 32-byte secret → HKDF-SHA-256 with two labels: one key wraps the vault key, one verifier proves the secret was rebuilt. Shares as above. | guardianRecovery.ts |
| Sign-in | ASP.NET Identity password hashing; TOTP (RFC 6238); passkeys (WebAuthn); 15-minute access tokens with rotating refresh tokens. | server |
| Addresses at rest | ASP.NET Data Protection (AES-256-CBC with HMAC-SHA-256) with a key ring kept outside the database. | server |
The source
Read the code that does it.
These are the crypto files of this release, published unchanged. The app you run is compiled from them; a reproducible-build recipe, so you can confirm that yourself, is on the roadmap.
The offline decrypting tool — one file, no network — is built from these same files. These files are published for review. All rights reserved; they are not licensed for reuse. Found a flaw? Write to info@capsulebridge.com. We publish what we fix.
Take 4 minutes today, so your family doesn't take 4 years tomorrow.
Start with our Readiness Quiz. Seven questions, one personalized plan, no credit card.
Take the Readiness Quiz