# Deniable storage without a vault index: how trial decryption works

Why a vault index or a stored decoy switch leaks, how trial decryption over every record replaces it, and what a forensic image of the phone still shows.

Published 23 November 2026. 9 min read.

Deniable storage without an index means the app never writes down which vaults exist. Instead of looking a vault up, it derives a key from what you entered and tries that key on every stored record, and whatever authenticates is the vault. There's no list to find, no count to read and no decoy switch to flip, so the question "is there another vault?" is one the vault storage itself can't answer.

Here's how that works in Cachette, why an index or a stored decoy setting leaks, how the design compares with VeraCrypt's hidden volumes, and what a forensic image of the phone can still show.

## What deniability asks of storage

Plausible deniability is the property that someone who can examine your device, or make you open part of it, can't prove there's more. The idea is older than smartphones. In 1998, Ross Anderson, Roger Needham and Adi Shamir described a [steganographic file system](https://www.cl.cam.ac.uk/archive/rja14/Papers/stego-fs.pdf) that delivers a file to anyone who knows its name and password, while an attacker who doesn't "can gain no information about whether the file is present, even given complete access to all the hardware and software."

That last clause sets the bar. Encrypting the hidden data isn't enough: the storage must not reveal that it exists. Every piece of bookkeeping an app keeps is a place where it might.

## Why an index or a stored switch leaks

The straightforward way to build a decoy is a switch. You type a code, the app compares it with the codes it stored, and it decides which gallery to show. Plenty of apps work some version of this way, and it does a fine job of keeping photos away from a casual glance. Against someone who examines the phone, though, each part of the switch is evidence:

- **A list of vaults or galleries** says how many exist, however well each one is encrypted.
- **A stored code, or a hash of it,** can be tested offline. A 4-digit PIN has 10,000 possible values, and unless the hash is deliberately slow, a laptop tries them all in a moment. Two stored hashes also say there are two codes.
- **A setting such as "decoy enabled"** answers the question outright.
- **A folder or database per vault** gives the count away through the file system, and modification times show which one you actually use.

The pattern behind all four: if the app knows a second vault exists, assume a careful examiner can learn it too. [Decoy vaults and plausible deniability](https://getcachette.app/blog/decoy-vault-plausible-deniability/) covers the switch design in more detail. The alternative is an app that doesn't know.

## How trial decryption works

When you unlock Cachette, the pattern isn't checked against anything. It's the input to the key derivation: Argon2id, then an HMAC with a pepper held in the phone's keystore. [Inside Cachette's encryption](https://getcachette.app/blog/inside-cachette-encryption/) has every parameter. Each stored item is a record whose header, holding that item's own key and metadata, is sealed under a vault key. Unlocking runs like this:

1. You draw a pattern and lift your finger.
2. Cachette derives the vault key K once. That's the expensive step, a full Argon2id with 128 MiB of memory.
3. It tries to open every header in the store with K. Sealed means authenticated encryption, so a header either verifies under K or fails its integrity check. It never decrypts into plausible-looking nonsense.
4. The headers that verify are the vault, and their keys open the content.
5. If none verify, the vault is empty. That's also exactly what a brand-new vault looks like, so the screen says "Nothing here yet. Tap + to add photos, videos or files. Every pattern opens its own vault. Go back to draw a different one."

Nothing in that loop needs a list. No header says "vault 2"; each is simply sealed under a key that one pattern produces. Every unlock tries every header, whichever pattern you drew. And because a never-used pattern behaves exactly like a new vault, there's no wrong-pattern event for anyone to count, watch for or find in a log.

Trying everything sounds expensive, but the costly part happens once. Deriving K is a full Argon2id; checking a header is one authenticated decryption of a small piece of data, far cheaper by comparison. The work grows with the number of stored records, not with the number of vaults, which the app couldn't count anyway.

VeraCrypt recognises a successful header decryption in a similar way: according to its [encryption scheme](https://veracrypt.io/en/Encryption%20Scheme.html), the decrypted header must start with the ASCII string "VERA" and match a CRC-32 checksum stored inside it. An authenticated cipher does that job with its tag.

## Where records go, and why order matters

Removing the index isn't enough on its own. Storage has a shape, and shapes can talk.

Imagine records appended to the store in the order they were created. Someone who makes you open your second vault learns which records belong to it. If those sit in one stretch and a long run after them didn't open, that run is a fingerprint of another vault: roughly how many items, and in what order you added them. Even without opening anything, 150 photos imported in one sitting would sit together as one block.

Cachette writes each record into a uniformly random free slot among pre-allocated filler records, which look like random data. A vault's records end up scattered among filler and other vaults' records, and nothing about their positions says which belong together or which were written in the same session. Opening one vault shows someone which slots are that vault's, and nothing about the rest.

The same reasoning covers the files themselves. Names are random, and sizes are padded to fixed steps (256 KiB below 8 MiB, 1 MiB above), because names and exact sizes are bookkeeping too.

## Why every unlock takes exactly one second

Time is the last channel. Deriving the key takes about the same time for any pattern, but what follows doesn't have to: opening thirty records and drawing their thumbnails is more work than opening none. Someone who sees one pattern open slowly and another instantly has learned which vault is full.

So Cachette fixes the budget. From the moment your finger lifts to the vault's first frame is always 1,000 ms, whatever the store holds. A full vault, an empty one and a new one can't be told apart by timing, which matters most in the situation deniability exists for: someone beside you, watching you open the app.

The fixed second hides one more thing. Trying every header takes longer in a store with many records than in a small one, so an unlock that ran as fast as it could would hint at how much the phone holds. Measured from finger-lift to first frame, the answer is always the same.

## How it compares

Three ways to answer "which vault opens?":

| | Stored decoy switch | VeraCrypt hidden volume | Cachette |
|---|---|---|---|
| Secrets | Usually two codes | Two passwords, outer and hidden | Any number of patterns |
| How it decides what opens | Compares your code with stored codes or hashes | Tries the standard header, then the hidden header area | Tries one derived key on every record header |
| What's stored about vaults | Codes or hashes, settings, folders | Nothing readable; an unused hidden header area holds random data | No index, no count, no names |
| A code that was never set | Usually an error | Nothing mounts | An empty vault, after the same one second |
| Adding to the decoy | Separate storage | Can overwrite the hidden volume unless hidden volume protection is on | New records go only into free slots |
| What still leaks | The stored record itself | Changes between snapshots; old copies on flash | Total encrypted size; changes between snapshots |

VeraCrypt is the best-documented deniable design, and its manual is worth reading for anyone building one. A [hidden volume](https://veracrypt.io/en/Hidden%20Volume.html) lives in the free space of an outer volume, which VeraCrypt fills with random data when it creates the volume. At mount time, "VeraCrypt first attempts to decrypt the standard volume header using the entered password." If that fails, it tries the region reserved for a hidden header, which holds only random data when there's no hidden volume. That's trial decryption with a single hidden slot.

Its candour about limits is just as useful. The [security requirements](https://veracrypt.io/en/Security%20Requirements%20for%20Hidden%20Volumes.html) warn that someone with access to a volume at several points over time "may be able to determine which sectors of the volume are changing", and could ask you to explain. The page on [wear-leveling](https://veracrypt.io/en/Wear-Leveling.html) warns that on flash storage "multiple 'versions' of a single sector may be available to an attacker," and advises against VeraCrypt for plausible deniability on such devices. Writing to an outer volume can also overwrite the hidden one unless you mount it with [hidden volume protection](https://veracrypt.io/en/Protection%20of%20Hidden%20Volumes.html), which asks for both passwords.

A stored switch and an index-free design differ in kind, not degree: one has to remember, the other has nothing to remember. VeraCrypt and Cachette share the approach, and they share the physics too. Storage that changes over time can be compared over time.

## What a forensic image still shows

A forensic image is a full copy of a phone's storage, made with specialised tools for later analysis. [What forensic tools see](https://getcachette.app/blog/what-forensic-tools-see/) covers the tools; here is what an image shows about this design.

- **The total amount of encrypted data.** Records are scattered and sealed, but they take up space, and space can be measured. If the vault you open holds thirty photos and the store holds 4 GB, that difference is a question someone can ask.
- **Change over time.** Compare two images taken weeks apart and you can see which stored data changed in between, the same caveat VeraCrypt documents. Phones store data on flash, where older versions of some blocks can linger below the file system and act like an earlier snapshot.
- **Backup files within reach.** Each backup holds one vault and carries a check value for that vault's pattern, so it can restore on a new phone. Someone who finds a backup file, on the phone or in an account it syncs to, can test whether the pattern you showed them matches it, and one that doesn't points to another vault. Keep backups of a vault you'd rather not discuss somewhere the people around you can't reach.
- **Not the vaults themselves.** There's no index to read, filler and other vaults' records look alike, and placement is random, so the vault storage doesn't show how many vaults exist, which records belong together or which pattern opens what.

The practical answer to the first two is the same: make the vault you'd show a real one. Give it a believable amount of ordinary photos from different months, and keep using it, adding and deleting over time, so the store changes for ordinary reasons. Setup helps here. It guides you through a second vault of 20 to 40 ordinary photos taken over months, with a live panel of hints that advises and never blocks, and [building a believable second vault](https://getcachette.app/blog/build-a-believable-second-vault/) has more ideas.

Two limits sit outside storage entirely. A rooted or infected phone can watch you draw, and no app can stop someone from pressuring you. The second vault is meant for pressure from people around you, like a partner who knows your PIN or someone who takes your phone, not for officials: misleading an official can itself be a crime. [Designing for coercion](https://getcachette.app/blog/designing-for-coercion/) explains why the design aims at the person holding your unlocked phone, and what that choice gives up.

## Questions

### What is plausible deniability in encryption?

It's the property that someone who can examine your device, or make you open part of it, can't prove there is more hidden data. It only holds if nothing stored on the device, such as an index, a setting or a file layout, records that other encrypted data exists.

### How does trial decryption work?

The app derives a key from what you entered, then tries that key on every stored record header. Headers sealed under that key pass their integrity check and form the vault, and the rest stay closed. No list of vaults is needed, so none is kept.

### Is a VeraCrypt hidden volume the same idea?

It's close. VeraCrypt tries your password on the standard volume header, then on the area where a hidden volume's header would be, and mounts whichever one decrypts. Its documentation also warns that snapshots over time and flash storage can weaken deniability, limits that apply to any design of this kind.

### Can forensic tools find a hidden vault?

In a design with no index, nothing in the vault storage names or counts the vaults, so there is no list to find. A forensic image does show the total amount of encrypted data, comparing images taken at different times shows what changed, and backup files within reach are evidence too, which is why a second vault should be substantial and in regular use.

---

Canonical page: https://getcachette.app/blog/deniable-storage-without-index/
Last updated: 2026-11-23
