- The envelope
- One file per item. Its short header says, in plain text, only the format version and what decryption needs. Inside, the item's key and its details are each sealed on their own, followed by the content encrypted under the item's key.
- Seed phrase
- BIP-39, 12 words, 128 bits of entropy, from the platform's secure random source.
- Seed
- BIP-39's PBKDF2-HMAC-SHA512, 2048 rounds, no passphrase.
- Keys from the seed
- HKDF-SHA256 derives two independent 256-bit keys: the master key and an X25519 private key. Your vault's public key is computed from its private key, and cannot be turned back into it.
- Item content
- A random 256-bit key per item, and AES-256-GCM with a 96-bit nonce and a 128-bit tag. Large files are split into frames sealed independently, each with its own nonce.
- Sealing the item's key and details
- HPKE (RFC 9180) in base mode, with DHKEM(X25519, HKDF-SHA256), HKDF-SHA256 and AES-256-GCM. Each seal uses a fresh ephemeral key, so two seals of the same thing look unrelated.
- File names on disk
- Random, revealing nothing about the item.
- The records key
- The records key, called the master key in the code, encrypts the vault's index, the names you give items, your document folders, the vault's own name, and a verifier that tells whether a typed phrase is this vault's. HKDF-SHA256 subkeys of it encrypt the cache of thumbnails and the sealed copy of your seed phrase. A copy of the vault's name is also kept unencrypted on the phone, so it can show before you unlock.
- Across platforms
- iOS (CryptoKit) and Android (the platform's own providers) each open the other's envelopes; shared test vectors pin the private key's derivation and the sealing. Ciphertexts differ between runs, because every nonce and ephemeral key is fresh.
- PIN
- Six digits; on iPhone, a passphrase can take its place. Stretched with Argon2id into a key that, with one strong-biometric scan, opens the keys the phone keeps. The phone keeps those keys in the iOS Keychain, or in the app's storage under an Android Keystore key. Sigil keeps no hash of it.
- Biometrics
- One biometric scan the device rates as strong (Face ID, Touch ID), needed with the PIN. Enrolling a new strong biometric invalidates the binding, and the phrase is needed to open the vault again.