Pattern lock: a key only you can draw

Fortress opens with a pattern you draw on a grid of 25 dots, five by five. A pattern has to connect at least 7 of them. It’s separate from your phone’s own lock, so someone who knows your PIN, or can hold the phone up to your face, still can’t open your vault.

Why a pattern, and why 5×5

A pattern is fast to draw with one thumb and easy to remember as a shape, which matters for something you’ll open many times a day. The usual Android lock grid is 3×3, with nine dots; most people pick from a small set of shapes on it. A 5×5 grid has 25 dots, and every pattern must use at least 7, so the number of possible patterns is vastly larger, and the obvious shapes are a much smaller share of them.

If you draw straight over a dot, it’s added to the pattern, as on Android’s lock screen.

Your pattern is the key, not a password to check

Most apps store your passcode, or a scrambled version of it, and compare what you enter against it. Fortress doesn’t store your pattern in any form. Each time you draw it, Fortress turns it into an encryption key:

  1. The pattern goes through Argon2id, a deliberately slow, memory-hungry function (64 MB and three passes per attempt), mixed with a random secret kept in your phone’s keystore.
  2. On phones with a security chip, the result passes through a hardware key that never leaves the chip (Secure Enclave on iPhone, Android Keystore).
  3. The result opens your vault’s master key, which opens your files.

A wrong pattern doesn’t fail a comparison. It just produces a key that opens nothing. The security model shows each step.

Guessing is slow on purpose

  • After 5 wrong patterns in a row, Fortress makes you wait 30 seconds, and each further miss raises the wait, up to 15 minutes.
  • Closing the app, restarting the phone or changing its clock doesn’t reset the wait.
  • Because every guess needs this phone’s hardware key, the vault’s files can’t be copied to a computer and guessed at there.
  • If you want, auto-wipe erases everything after a number of wrong patterns you choose.

Hide the line while you draw

Patterns are easy to learn by watching. In Settings, turn on Hide pattern while drawing and the dots and line stay dark as your finger moves, so someone looking over your shoulder sees much less.

Changing it

You can change your pattern at any time in Settings. Your recovery phrase stays the same. Your new pattern still has to use at least 7 dots.

If you forget it

Your 12-word recovery phrase opens the vault and lets you set a new pattern. Without the phrase, nobody can open the vault, including us. See recovery phrase.

For help choosing a pattern that’s hard to guess, read how to choose an unlock pattern people can’t guess.