Sigil · Security

How Sigil protects your vault

Everything you keep in Sigil is stored as a sealed envelope: one encrypted file per item. Here is what goes into one, what it shows on the outside, and what it takes to open.

How it works

Sealing and opening an envelope
Sealing and opening an envelopeThe vault's public key seals every envelope, with no unlock needed. The private key, which comes from your phrase, opens them. Outside, an envelope has a random file name and a plain-text header. Inside, the public key seals the item's key and its details, each on its own, and the content is encrypted under the item's key. The text version follows.Public keyseals every envelopeno unlock neededsealsOne envelope per itemOUTSIDERandom file nameHeader, in plain text:format version andwhat decryption needsINSIDEItem keysealedName, type, datesealed on their ownContentunder the item’s keyPrivate keyopens envelopescomes from your phraseopensSealing and opening an envelopeThe vault's public key seals every envelope, with no unlock needed. The private key, which comes from your phrase, opens them. Outside, an envelope has a random file name and a plain-text header. Inside, the public key seals the item's key and its details, each on its own, and the content is encrypted under the item's key. The text version follows.Public keyseals every envelope, no unlock neededsealsOne envelope per itemOUTSIDERandom file nameHeader, in plain text:format version andwhat decryption needsINSIDEItem keysealedName, type, datesealed on their ownContentunder the item’s keyopensPrivate keyopens envelopes, comes from your phrase
Read the diagram as text
  1. Your vault's public key seals every envelope, and the app can use it while the vault is locked.
  2. Opening an envelope takes the private key, which comes from your phrase.
  3. Each item you keep is one envelope: a single encrypted file.
  4. Outside, it has a random file name and a short plain-text header whose only readable fields are the format version and what decryption needs.
  5. Inside are three parts: the item's key and its name, type and date, each sealed on its own to the public key, and the content, encrypted under the item's key.

Every item goes into its own envelope

Each photo, video, note, recording or document is encrypted with a random key made for that item alone. That key goes inside the envelope, sealed, and so do the item's name, its type and the date it was made. The outside of the envelope does not name the item or its type and even the envelope's file name is random.

Sealing needs no unlock

An envelope can be sealed while the vault is locked, so the camera, the recorder and a new note seal what you capture before you unlock.

How your data is locked
How your data is lockedA pyramid. Your seed phrase is at the top, then the seed, then the private key, which opens envelopes. Below it is the public key, computed from the private key, which seals every envelope. At the base are your items, each under its own key. The text version follows.Seed phrase12 wordsSeedtwo keys come from itPrivate keyopens envelopesPublic keycomputed from the private keyseals every envelopeItem 1its own keyItem 2its own keyItem 3its own keyThe phone keeps a copy of this key,retrieved only with your PIN and a scan
Read the diagram as text
  1. Your twelve-word seed phrase gives a seed, and your vault's private key comes from it.
  2. The private key opens envelopes.
  3. Your vault's public key is computed from the private key and cannot be turned back into it. It seals every envelope.
  4. At the base are your items, such as item 1, 2 and 3. Each is encrypted with a random key made for that item alone, sealed in its envelope.
  5. The phone keeps a copy of the private key between sessions, which opens only with your PIN and a fingerprint or face scan.

Your seed phrase

Sigil gives you twelve words, commonly called a seed phrase. The keys used to seal your data come from this seed phrase. It can be written down and stored in a lock box for example or we give you the option to view it on your phone behind Sigil's PIN and biometrics.

The records key
The records keyA smaller pyramid. The seed also gives the records key, which locks the vault's own records, such as its index, the names you give items, your document folders and the vault's name, and, through keys made from it, the thumbnails and the sealed copy of your phrase. The phone also keeps a plain copy of the name. The text version follows.SeedRecords keylocks the vault's own recordsIndexItemnamesFoldersVaultnameThumbnailsunder a keymade from itPhrase copyunder a keymade from itThe phone keeps a copy of this key,retrieved only with your PIN and a scan
Read the diagram as text
  1. The seed also gives a second key, called the records key here and the master key in the code.
  2. It locks the vault's own records, such as its index, the names you give items, your document folders and the vault's name.
  3. Keys made from it lock the thumbnails the app keeps for quick display, and the sealed copy of your seed phrase.
  4. The phone also keeps a plain copy of the vault's name, so it can show the name before you unlock.
  5. The phone keeps a copy of it between sessions, which opens only with your PIN and a fingerprint or face scan.

Your phone stores these keys

So you don't type your seed phrase every time, the phone keeps a copy of your private keys, and will only retrieve them with your PIN (or a passphrase on iOS) and a fingerprint or face scan together. After 10 wrong tries, the app asks for your seed phrase, and you can choose to have it erase the vault instead.

Backups

An encrypted backup copies each envelope as it is, so it opens with your seed phrase on any phone with Sigil.

Your business, not ours

There is no account needed, no internet requirement, and no back entrance way to look at your data.

Technical reference

Deep dive

For those who want to know more:

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.