LumenPod
All postsPrivacy & Security

Deniable Encryption, Explained: The Password That Proves Nothing

Encryption hides content but not itself. A plain-language tour of rubber-hose cryptanalysis, deniable encryption, plausible deniability and decoys, from the 1996 paper and VeraCrypt hidden volumes to how a photo app applies the same ideas at the app level.

By LumenPod · · 9 min read

Ask a cryptographer how secure an encrypted file is and you will hear about key lengths and algorithms. Ask how secure the file's owner is and the conversation changes. The strongest cipher in the world does nothing about the simplest attack ever documented against encryption, one that skips the mathematics entirely and goes straight for the person holding the password.

This is an explainer about the branch of cryptography built for exactly that problem: deniable encryption, plausible deniability, decoy data, and the wonderfully named rubber-hose cryptanalysis, and about how we applied these ideas in LumenPod, our local photo library, and where we deliberately stopped.

Hand-drawn illustration: a shadow figure holding a wrench demands GIVE ME THE PASSWORD while a bean character calmly hands over a key tagged decoy, annotated rubber-hose cryptanalysis, skip the math, pressure the human

Start with the wrench

"Rubber-hose cryptanalysis" appeared on the sci.crypt newsgroup in 1990, in a post by Marcus J. Ranum. The joke definition: apply a rubber hose forcefully and frequently to the soles of the victim's feet until the key is discovered, a process described as surprisingly fast and computationally inexpensive. A well-known webcomic later compressed the same idea into a panel about a five-dollar wrench. Coercion is not a theoretical attack. Border checks, extortion, abusive households, workplaces that demand device access, and police in countries with key disclosure laws all put pressure on people rather than on algorithms.

Standard encryption has no answer to this. It can make data unreadable. It cannot make the data deniable, and it cannot stop the person who holds the key from becoming the weakest part of the system.

The problem encryption leaves behind

Encryption hides content. It does not hide itself. An encrypted volume on a disk is visible as encrypted data, a locked vault in an app announces that something is being protected, and a password dialog that can answer "wrong password" is testifying against you: a secret exists here, and the person in front of the screen has not surrendered it.

Think of a normal ciphertext as a commitment. It decrypts to one plaintext with the right key, so handing over that key settles every question. The coercer's job is easy to define: keep applying pressure until the commitment is honored. As long as you can be shown to be holding out, holding out is what you will be pressed to stop doing.

The ideas in this article all attack that commitment. They try to build systems where giving up a password does not prove anything, because there might be nothing more to give up, and nobody can tell the difference.

Deniable encryption: one ciphertext, more than one truth

In 1996, Ran Canetti, Cynthia Dwork, Moni Naor and Rafail Ostrovsky gave the idea a formal treatment in a paper titled simply "Deniable Encryption", presented at CRYPTO '97. Their construction lets a ciphertext open to different sensible plaintexts depending on which key is used. Hand over one key and you reveal an innocuous message. The existence of a second message under a second key cannot be proven from the ciphertext itself.

Ordinary encryption says: this data is secret, and only the key holder can read it. Deniable encryption says: this data might not even be the data. The sender or the holder can deny, with a straight face and with mathematics on their side, that the hidden plaintext exists at all.

The paper was mostly theoretical, but practitioners were already building cruder versions of the same thing. In 1997 Julian Assange, Suelette Dreyfus and Ralf Weinmann released Rubberhose, a deniable filesystem written for human rights workers carrying sensitive data through hostile territory. Rubberhose stored data in layers, each opened by a different key, padded with chaff layers of random data, so that surrendering some keys never proved you had surrendered all of them.

Plausible deniability is the property, not the algorithm

The term plausible deniability wandered into cryptography from politics, where it describes an official's ability to credibly deny knowledge of something. In encryption it names the property the systems above are chasing: an adversary who has your device, your ciphertext, and even a password you gave them still cannot prove that more exists.

That property matters most where the law enters the room. Several countries have key disclosure laws. The United Kingdom's Regulation of Investigatory Powers Act makes refusing to surrender a key, when properly demanded, a criminal offence. France and Australia give prosecutors broad powers to compel keys as well. In the United States, courts have often treated forced password disclosure as self-incrimination under the Fifth Amendment, but the rulings are not uniform. Against a legal duty to decrypt, "I cannot" is a weak position. "There is nothing more, and here is a working password to prove the vault is open" is a different one, provided the software cannot contradict you.

There is a paradox built into all of this. Because deniable systems exist, a determined coercer can never be sure you have handed over your last key, and may keep demanding more. Deniability removes proof. It does not remove suspicion, and it cannot repeal pressure. What it changes is the evidence available to the person applying the pressure, and most real-world encounters are brief, with the coercer looking for easy confirmation rather than a forensic case.

Decoys: the working parts

Most real systems rely on decoys, not on the pure mathematics of the 1996 paper. The best known design is the hidden volume in VeraCrypt, the successor to TrueCrypt.

A hidden volume lives inside an ordinary encrypted volume. You create the outer volume, fill its free space with random data as VeraCrypt always does, and copy in decoy files: documents that look sensitive enough to be worth encrypting but that you are genuinely willing to show. The hidden volume then occupies part of that same free space, written in bytes indistinguishable from the random fill. Two passwords exist. The outer password opens the decoys. The inner password opens the real data. With the outer volume mounted, there is no test that shows whether a hidden volume is inside it, because empty VeraCrypt space and hidden VeraCrypt data look exactly alike.

Hand-drawn diagram of a VeraCrypt hidden volume: one encrypted volume, password 1 opens the outer volume with decoy files, password 2 opens a hidden volume inside the free space filled with random data

Three lessons from this design generalize to every decoy system:

  • The decoy has to be plausible. An outer volume containing one text file named "nothing here" convinces nobody. Decoys work when they look like the thing a person would normally protect.
  • The decoy has to cost you something real. Files you would actually mind showing carry conviction that staged props do not.
  • The system must never testify. Any list, count, log, or error message that reveals how many layers exist destroys the property the decoys were built to create.

The third lesson is the one that shaped LumenPod's design.

How a photo app uses these ideas

LumenPod is a photo and video library that runs locally on your own drives, and its vaults are where we applied the ideas above. Photos are the data people get pressured over in ordinary life: the borrowed laptop, the phone handed across a desk, the family member who keeps scrolling. We wanted vaults that borrow deniability without asking users to manage encrypted disk containers.

The mechanism is a password dialog that cannot testify. In LumenPod, the dialog for setting a vault password and the dialog for unlocking a vault are the same dialog, unlabeled, because labeling them would announce whether a vault already exists. Submit a password and one of two things happens. If it matches an existing vault, that vault opens. If it matches nothing, a new vault is created with that password and opens instead. There is no wrong-password state, no list of vaults, and no screen anywhere in the app that says how many vaults you have.

Under pressure, that gives you the decoy move from the VeraCrypt playbook in a friendlier form. Hand over any password other than your real one and a working vault opens. Keep a second vault stocked with ordinary photos, the cat and the birthday cakes, and its password is the one you give up. The app will never contradict you, because as far as the app will ever say, that is simply one of your vaults.

The same rule shaped two supporting decisions. Forgetting a password, including the classic accident of mistyping one and creating a vault you did not mean to create, is handled by a recovery package rather than by hints in the app. A package exported from an earlier vault can cover vaults created after it, letting you reset their passwords and clear out empty slots, and coverage runs only in that direction, because a package that reached backwards would be a map of your vaults in creation order. And the package is treated like a spare key: the app prompts you to store it somewhere safe, away from the library, since using it at all acknowledges that several vaults exist.

The honest limits, and how to think about your own risk

We hold LumenPod's deniability to the app level, and we say so in our own FAQ. Inside the app, nobody can establish how many vaults you have or whether you ever set a password. At the level of the filesystem we make no such promise: encrypted files exist on disk as files, and a forensic comparison of library items against disk files could build a case that encrypted material exists. What the encryption itself guarantees is that without the correct password, none of it opens. Making deniability hold against disk forensics would mean disguising file counts, sizes and directory structures, a level of complexity whose failure modes, corruption and lost libraries among them, would land on the user. We chose the smaller promise that holds.

The general lesson transfers beyond our app. Before trusting any tool's privacy claims, including ours, ask three questions. What exactly is being denied: the content, the existence of the data, or the existence of more data? At what level does the denial hold: the app's interface, the operating system, or the raw disk? And who is the realistic adversary: a curious relative with your unlocked laptop for five minutes, a thief, an employer, or a state with a key disclosure law and time? Deniable encryption, decoys, and plausible deniability are real tools with thirty years of work behind them. They are also specific tools, built for pressure applied to people, and they protect you exactly as far as their stated boundary and not one step further.

Sources