Duress Codes: What They Do and Where They Fall Short
A Duress Code shows a decoy vault and requests destruction of your real one. Here is how it works, what it can't do, and when not to rely on it.

Corrected November 2026. An earlier version of this post overstated what a duress code can do, described the implementation inaccurately, and suggested it for situations where it could put someone at greater risk. We rewrote it.
What It Is
A Duress Code is a second PIN. If you enter it instead of your main PIN, UltraLocked requests destruction of your real vault and then shows a decoy vault.
It is a last-resort control, and it has real costs. It can permanently destroy your data, it can't guarantee your safety, and using it may have legal consequences. Most people should never need it.
How It Works in UltraLocked
When the Duress PIN is entered, the app:
- Deletes the real vault's master keys.
- Removes the vault's files, Crypto Secrets, previews, and pending shared items.
- Shows a decoy vault with sample content generated by the app.
The decoy appears after the destruction step finishes, so there can be a short pause. If cleanup is interrupted, the app stays locked and retries rather than showing the old vault. Destruction happens on the device and doesn't need a network connection.
What It Can't Do
It can't guarantee forensic erasure. Without the master keys, the app can no longer decrypt the old files. But flash storage and the operating system limit what any app can confirm has been erased.
It can't reach other copies. Exports, cloud backups, and originals in Photos, Files, or Messages are untouched.
It can't make you invisible. UltraLocked remains installed, and this feature is publicly documented. A decoy may not convince someone who knows the app or examines the phone closely.
It can't protect you from a person. Someone who suspects a decoy, or who expected to find certain data, may respond with more pressure or violence.
When Not to Rely on It
Abuse or physical danger. If someone who controls or threatens you demands access to your phone, don't rely on a decoy to keep you safe. Destroying data could also destroy evidence you need, and it could escalate the situation. A trained advocate can help you plan for device safety. In the US, you can reach the National Domestic Violence Hotline at 1-800-799-7233 or thehotline.org.
Border crossings and legal demands. Deleting data during an inspection, investigation, or legal hold may be a crime, depending on where you are, and could make your situation worse. Talk to a lawyer before you travel with sensitive material. For many travelers, the better approach is to carry less: leave what you don't need behind, and restore it from a backup after you arrive. Our Crossing Lines guide covers this in more detail.
As your only copy of anything. Destruction can't be undone, and an accidental entry has the same result as a deliberate one. We can't recover a destroyed vault.
If You Decide to Use It
- Keep an encrypted backup of anything you can't afford to lose, stored away from the phone.
- Choose a Duress PIN you won't enter by accident.
- Try it only on a test installation with disposable content, never on your real vault.
To enable it, set a main PIN first, then go to Settings and open Duress Protection. See What is a Duress Code? for details.