Skip to content

Pattern Lock Vault Apps on iPhone: How a Drawn Code Unlocks Encrypted Files

Why an iPhone pattern lock always comes from an app, how a pattern can become an encryption key, how safe patterns are, and what to check.

Get Stash

Quick answer

The iPhone has no pattern lock; iOS supports only number and alphanumeric passcodes. A vault app with a pattern draws its own grid, and the pattern is only as strong as the app makes it: a simple check, or a key that decrypts the files.

On iPhone
No pattern option in Settings. Patterns come from Android, and on iPhone only an app's own lock screen can offer one.
Gate or key
Some apps compare the pattern with a stored value. Better ones turn it into the key that decrypts the vault.
How strong
In a 2017 study, observers copied a six-dot pattern far more often than a six-digit PIN after one look.
When to use a vault
When photos need a code of their own, typed in a disguise that does not look like a lock screen at all.

Best overall: Stash

The iPhone has no pattern lock, and its Hidden album opens with the phone's own Face ID or passcode. Stash uses a numeric PIN of its own, typed into a working calculator, so the code looks like arithmetic to anyone watching. Face ID or Touch ID can open it too. Every item is encrypted on the device with AES-256, with the key in the iOS Keychain, and wrong PINs lead to growing lockouts. Stash is free to download with no ads, and the calculator, the PIN and the encrypted vault work from the first launch.

Why a pattern lock on iPhone always comes from an app

A pattern lock is a code you draw by joining dots on a grid. It is the classic Android screen lock: Google's help page lists Pattern ("Draw a simple pattern with your finger") next to PIN and Password under Settings > Security > Screen lock (Set screen lock on an Android device, checked as of 2 December 2026).

The iPhone has no such option. Apple's Platform Security guide says iOS supports "six-digit, four-digit, and arbitrary-length alphanumeric passcodes" (Passcodes and passwords, checked as of 2 December 2026). In Settings > Face ID & Passcode > Change Passcode > Passcode Options, the choices are a custom alphanumeric code, a custom numeric code and a four- or six-digit code. Apple's iPhone User Guide calls "Custom Alphanumeric Code and Custom Numeric Code" the most secure options (Set a passcode on iPhone).

So when an App Store vault app offers a pattern, it draws its own grid on its own lock screen. That pattern protects only that app. The iPhone itself still opens with its passcode, Face ID or Touch ID, and the phone's lock is still the first door anyone has to pass.

People coming from Android often look for a pattern vault because the gesture is in their muscle memory. That is a fair reason. The questions below decide whether a given app's pattern is a real lock.

Gate or key: what happens after you draw the pattern

The same drawing can do two very different things inside an app.

A gate. The app compares what you drew with a value it saved earlier. If they match, it shows the vault. The photos themselves may be encrypted with a key that sits on the phone regardless of the pattern, or not encrypted at all. A gate is only as strong as the rest of the app's design.

A key. The app runs the pattern through a key-derivation function, a slow, deliberate calculation that turns a short code into a long encryption key. That key, or a key it unlocks, decrypts the vault. With this design a wrong pattern does not merely get refused; it produces a key that opens nothing. NIST, the United States standards body, describes this method for password-based keys in SP 800-132, Recommendation for Password-Based Key Derivation.

Apple's own passcode works on the key principle. The Platform Security guide explains that the passcode is "entangled with the device's UID," so guessing must run on the phone itself, and that each attempt takes "approximately 80 milliseconds," with "escalating time delays after the entry of an invalid passcode, password, or PIN." A vault app's pattern adds its own layer on top of that, never instead of it.

How strong a pattern is

Two things decide how hard a code is to break: how many likely codes there are, and how easy it is to copy one by watching.

Guessing. A 3×3 grid of nine dots allows far fewer common patterns than the raw totals suggest, because people start in a corner, draw letters and avoid crossing their own path. Larger grids, such as 4×4 or 5×5, and longer patterns with several turns raise the number of real choices. The full counts for PINs and patterns are in the comparison of pattern lock vs PIN vs Face ID.

Watching. Patterns are easy to copy. In a 2017 study by Aviv and colleagues, observers who watched once succeeded against six-dot Android patterns in 64.2% of attacks and against six-digit PINs in 10.8% (Towards Baselines for Shoulder Surfing on Mobile Authentication, checked as of 2 December 2026). A pattern is a shape, and a shape is easy to remember after a glance.

Smudges. Drawing leaves a trail on the glass. On a small grid the trail can give away much of the pattern. A larger grid shows which dots were touched but leaves the order and the connections less clear.

Recovery. A forgotten pattern needs a way back. Apps that use the pattern as a key usually give a recovery phrase or key during setup; if both are lost, nothing can open the vault.

How to check a pattern-lock vault app

  1. Read the App Store description and the app's security page for "pattern", "key derivation", "PBKDF2", "Argon2" or "the pattern encrypts". If it only says "locked with a pattern", treat it as a gate.
  2. Look at the grid size. A 3×3 grid is the Android classic; 4×4 or 5×5 gives more room.
  3. Check the minimum length. A rule like "at least six dots with a change of direction" stops the weakest shapes.
  4. Check what happens after wrong patterns: a delay, a lockout, an intruder photo, or nothing.
  5. Check for a hide-the-trail option that stops the line being drawn on screen while you enter it.
  6. Check recovery: is there a recovery phrase or key, and is it shown once during setup?
  7. Check what Face ID or Touch ID does. If it opens the vault, the pattern is used only when Face ID fails.

Pattern, PIN, passcode and Face ID compared

Lock Where it exists on iPhone Easy to copy by watching Leaves smudges Can become an encryption key Typical recovery
Pattern Only inside apps that draw their own grid Yes, a shape is easy to remember Yes Yes, if the app derives a key App's recovery phrase or key
Numeric PIN in a vault app Inside the app Harder Little Depends on the app App's recovery key
iPhone passcode System lock Harder, longer codes more so Little Yes, entangled with the device's UID Erase and restore the phone
Face ID or Touch ID System and apps Not by watching No No, it confirms a match only Falls back to the passcode or PIN

When the iPhone's own lock is enough

For most photos it is:

  • Nobody else knows your passcode, and it is six digits or longer, or alphanumeric.
  • Face ID or Touch ID is on, so the code is rarely typed where someone can watch.
  • The private photos are in the Hidden album, and you accept that the passcode opens it.

When you need more than the iPhone's own lock

Look at a vault app when:

  • Someone else knows the iPhone passcode. Apple's Hidden album opens with it.
  • You often unlock where people can see the screen. A code typed into something that does not look like a lock screen draws less attention than a pattern grid.
  • The photos should leave the Photos library and iCloud Photos. A vault stores them in its own encrypted space.
  • You want to know about wrong attempts. Some vaults log them or take a photo.

How to lock photos with a calculator PIN in Stash

Stash uses a numeric PIN rather than a pattern. Its advantage over a pattern grid is where it is typed: into a calculator that really calculates, so entering the code looks like doing a sum, and a wrong PIN just shows a calculation result.

  1. Install Stash on an iPhone or iPad with iOS 15 or later.
  2. Choose your PIN and save the recovery key that Stash shows once during setup. It is the way back if you forget the PIN.
  3. To open the vault, type the PIN digits on the calculator and press =.
  4. Optional: turn on Face ID / Touch ID and auto-lock, so the PIN is typed less often where someone could watch.
  5. Import photos, videos and files. Each item is encrypted with AES-256 on the device before it is saved, and the key stays in the iOS Keychain.
  6. Wrong PINs lock the app for 30 seconds after 5 attempts, 5 minutes after 10 and 30 minutes after 15 or more. With Premium, opt-in intruder photos record who tried, and a Guest PIN opens a separate vault for moments when someone asks to see the app.

If the step-tracker or puzzle-game look suits you better than a calculator, Stash offers those with a matching app icon too.

FAQ

Can I set a pattern lock on iPhone?

Not for the phone itself. iOS supports only four-digit, six-digit, custom numeric and alphanumeric passcodes. Some App Store apps draw a pattern grid for their own lock screen.

Is a pattern more secure than a PIN?

Usually not. Patterns are easier to copy by watching, and people choose predictable shapes. A long, unusual pattern on a large grid narrows the gap.

What is pattern encryption?

A design where the drawn pattern is turned into an encryption key through a slow key-derivation function, so the pattern decrypts the vault instead of only unlocking a screen.

Can someone copy my pattern from screen smudges?

On a small grid, often in part. Wipe the screen, use a larger grid if the app offers one, or pick a code entered in a way that leaves no shape.

What happens if I forget my pattern?

The app's recovery phrase or recovery key is the way back. Without either, a vault whose key comes from the pattern cannot be opened.

Does Face ID replace the pattern in a vault app?

In most apps it is an alternative: Face ID opens the vault, and the pattern is the fallback. Face ID only tells the app whether the face matched.

Which vault apps use a pattern on iPhone?

Several App Store vault apps draw their own pattern grid. Read each app's security page to see whether the pattern derives a key or only unlocks the screen.

The Bottom Line

iOS itself has no pattern option: the iPhone accepts only number and alphanumeric passcodes, so every pattern lock on iPhone is an app's own screen. That makes the app's design the whole story. A pattern that only opens a screen is a gate; a pattern that is turned into a key through slow key derivation is a real part of the encryption. The table above shows the trade-off: patterns are easy to copy by watching and leave smudges, while a numeric PIN or a long passcode is harder to read over a shoulder.

Before you pick a pattern vault, check the grid size, the minimum length, what happens after wrong attempts and how recovery works. Whatever lock the vault uses, keep a strong iPhone passcode underneath it.

·Written by the developer of Stash

Save this guide

Summary of this guide as an image: Pattern Lock Vault Apps on iPhone: How a Drawn Code Unlocks Encrypted FilesDownload this guide as an image