How does pattern unlock work in Veldrin?
The first time you open the app you see a grid of dots and nothing else. There's no sign-up, no email address and no password box. You draw a continuous path across the dots, the app opens a vault for that path, and you start adding files. A valid pattern touches at least six dots and changes direction at least once, which keeps out the lazy single stroke across the top row.
- Open Veldrin for the first time. No account, email or configuration is asked for.
- Draw a pattern on the 5x5 grid. It needs at least six dots and at least one change of direction.
- Draw it a second time to confirm it, then save the recovery sentence the app shows you (see recovery phrases).
- Add photos, videos, documents or other files. The vault is the set of files that this pattern opens.
- On later launches, draw the same pattern. A different pattern opens a different vault, or an empty one.
That last step has a consequence we explain on the hidden vaults page. Veldrin has no list of vaults, so the pattern is both the key and the address.
Pick your grid size
Choose the pattern that suits you. Veldrin uses a 5x5 pattern grid (25 dots) by default, with 6x6 (36 dots) and 8x8 (64 dots) options for people who prefer a larger grid. You change it under Settings → Security → Pattern Lock, and your existing authentication is required to do it. Your encrypted files and recovery options stay intact. A larger grid allows more possible patterns, but the grid size alone does not make a vault secure: the key structure described below does the protecting, and the pattern you draw still matters.
| Grid | Dots | Ordered 8-dot patterns* |
|---|---|---|
| 3×3 | 9 | 362,880 |
| 4×4 | 16 | 518 million |
| 5×5 | 25 | 43.6 billion |
| 6×6 | 36 | 1.22 trillion |
| 8×8 | 64 | 178 trillion |
*Every ordered path through 8 different dots. Real locks add rules, so usable totals are lower. Pattern shape matters as much as grid size.
Does the pattern protect the files, or only the screen?
The answer decides whether a pattern is a lock or only a screen cover. In Veldrin the pattern is run through a key derivation, and the result opens an encrypted index. The index holds a second, separate random master key, and that master key is what protects the file contents.
The layering has a practical payoff. Because the files are protected by the master key and not by the pattern directly, changing your pattern only means re-wrapping that one key. You're not waiting while every photo and video is decrypted and encrypted again. A vault with ten thousand files changes its pattern as quickly as an empty one.
How it works, step by step
You draw your pattern
The path across the grid is the input. The app reads the sequence of dots you touched, in order, and nothing else about the gesture is needed.
The pattern derives a vault key
The sequence goes through a key derivation, a deliberately slow calculation that turns a small secret into a key. The same pattern produces the same key, and a different pattern produces a different one.
Your files are protected by a separate master key
The key from the pattern opens an encrypted index. Inside it sits a random master key, and that master key protects the file contents. Files aren't encrypted directly with a key derived from the shape you drew, which is why changing the pattern is quick.
Locking and key state
A sound vault shouldn't keep the opened key around longer than it needs to. When you evaluate any vault app, ask what it does with the key when you leave the screen, when the app goes to the background and when the phone locks. Veldrin's documented structure is the layered one above, and how long an opened key stays in memory is a question worth asking of every app, ours included, before you rely on it.
The arithmetic behind a pattern lock
Entropy: the measure of unpredictability
Entropy counts how many guesses an attacker needs, expressed in bits, where each extra bit doubles the work. The usual count of valid patterns on a 3x3 grid, about 389,000, is roughly 18.6 bits if every pattern were equally likely. A random six-digit PIN has a million possibilities, about 19.9 bits. The word equally carries the whole argument, because people don't pick patterns at random, and the real number for habits like starting in a corner is far lower.
Key derivation: making each guess expensive
Because a pattern is a small secret, a defender's best tool is to make every guess slow. Suppose, purely as an illustration, that one guess costs a tenth of a second of computing. A million guesses then take about 28 hours on one machine, and at a thousandth of a second they take about 17 minutes. The real figures depend on the derivation and on the hardware an attacker owns, and we don't publish ours here. The cost per guess, the length of your pattern and the care you take choosing it multiply together.
Why the cipher should be a public standard
Whatever cipher protects the files, you want one that has been studied in public for years, not one invented in-house. The most widely deployed examples are described in Apple's own security documentation, and our guide to AES-256 encryption explained explains what such a standard does and doesn't give you. Veldrin doesn't name its parameters on this page, because a name alone verifies nothing.
Brute force: trying every pattern
Brute force means trying candidates until one works. It succeeds against secrets small enough to enumerate, and the defender has three levers: the size of the space, the cost of each try and any limit on attempts. On a locked iPhone, Apple's hardware can limit attempts. A copy of an app's data taken off the phone isn't subject to that limit, so the pattern has to be unpredictable on its own.
What an attacker would have to overcome
- Get hold of the phone, or a copy of the app's data.
- Defeat the phone's own protection, or pull the data from a backup.
- Find the right pattern among the possibilities, with every guess made expensive by the key derivation.
- Open the index to reach the master key.
- Only then decrypt the files themselves.
Notice what the chain depends on: it's only as strong as the weakest link that a given attacker can reach. A stranger holding your unlocked phone skips straight to the end, a thief with a copy of the data gets stopped at step three.
Choosing a strong pattern
- Make it long. Use many more dots than the minimum of six.
- Include several changes of direction, and cross back over the grid.
- Avoid letters, numbers and corners. Initials and a starting corner are the first things a guess list tries.
- Use a different shape for each vault, and keep them unrelated to each other.
- Rehearse it until your thumb knows it, so you never draw it slowly in public.
- Draw it out of sight. Cover the screen or wait.
Where a pattern is enough and where it is not
Against the common threats you can feel reasonably confident: a curious acquaintance, a thief who picks up a locked phone, someone browsing a copy of your data without effort. You should not feel invulnerable against a person who watches you draw the pattern, someone who can compel you, or malware on an unlocked phone. The page on security architecture draws the rest of the map.
How strong is a drawn pattern compared with a PIN?
Weaker than a long random passphrase, and the grid size matters. A classic three-by-three grid allows a bit under 400,000 valid patterns, about 389,000 by the usual count in published research on Android lock patterns, which is fewer than the million possibilities in a random six-digit PIN. A 5x5 grid allows far more paths, and the six-dot minimum removes the shortest and most guessable ones. We don't quote a combination count for Veldrin, because the raw number overstates what people really draw.
People draw predictable shapes: they start in a corner, trace a letter, move in straight lines. A guess list built from those habits is much shorter than the full count, so draw something long, with several turns, that doesn't resemble a character or a number. Patterns are also easy to watch. Someone behind you sees the entire shape at once, where a PIN gives them separate taps to catch, and oily fingers can leave a trace on the glass that researchers have used to recover a pattern.
What does a pattern cost you?
A pattern costs three things. First, with no account and no password field, there's no reset link: if you forget the pattern, the way back in is the recovery phrase, and if you lose that too, the vault is gone. Second, a pattern is a shape you perform in public, so the unlock is easier to observe than a typed secret, and you should choose where you draw it. Third, the pattern opens a vault, so every pattern you ever draw, including the wrong ones, is a question the app tries to answer. A mistyped pattern shows an empty vault and not an error.
The advantage is that people use what's quick. A secret you resent entering is one you'll eventually weaken, and the usual advice to use a long random passphrase for everything ignores that. A pattern is fast with one thumb and held in muscle memory, and it looks nothing like the phone's own lock screen.
What should you ask of any app that offers pattern unlock?
- Does the pattern actually protect the stored files, or only the screen in front of them?
- Is there a minimum length, and does it reject trivially short patterns?
- What recovery route exists if you forget it, and does that route weaken the lock?
- What happens after wrong attempts, and what does a wrong pattern show?
- Does the vendor publish how the pattern is processed, and has anyone independent looked at it?
For a side-by-side look at the common choices, see our guide to pattern lock versus PIN and Face ID. If you're already locked out of another app, what to do when you forget a photo vault password is the place to start.
If you want something stronger for the phone itself
Use a long alphanumeric passcode on the phone, since the passcode is also what protects data on the device when it's locked. Apple describes how the passcode, Face ID and Touch ID relate in its platform security guide. A longer secret is easier to live with than it sounds, because Face ID handles most unlocks day to day and you type the passcode far less often than you fear.
Questions people ask
Is a pattern more secure than a PIN?
Usually not. A random six-digit PIN has a million possibilities, and a three-by-three pattern has a bit under 400,000. A long pattern on a larger grid narrows the gap, but people draw predictable shapes, and a pattern is easy to watch. A long passphrase beats both.
Does Veldrin use a pattern to unlock?
Yes. Veldrin opens with a pattern drawn on a grid of dots, 5x5 by default, with 6x6 and 8x8 grids available under Settings → Security → Pattern Lock. There is no password field and no account. A valid pattern touches at least six dots and changes direction at least once.
Can someone see my pattern from the screen?
Yes, in two ways. A person watching over your shoulder sees the whole shape at once, and oil from your fingertip can leave a trace on the glass. Draw it where nobody is looking, and wipe the screen now and then.
If I forget my pattern, can I get my files back?
Only with the recovery phrase. Veldrin shows a nine-word recovery sentence when you create a vault, and accepts it later if you forget the pattern. Without the phrase, and with no account to reset, there's no way in.
Does changing my pattern take a long time?
No. The pattern opens an index that holds a separate master key for the files, so changing the pattern re-wraps that one key. The files themselves aren't re-encrypted.
Can someone screenshot or record my pattern?
Yes, a person filming your screen or watching over your shoulder can capture the shape. Draw it where nobody can see the screen. The app protects files at rest, and it can't stop someone observing your hand.
What encryption algorithm does Veldrin use?
We don't publish algorithm names or key sizes on this page. What we state is the structure: the pattern derives a key, that key opens an encrypted index, and the index holds a separate random master key for the files.
Is the pattern stored on my device?
The pattern is the input to a key derivation, and the key it produces opens an encrypted index. Only the correct pattern yields a key that opens the index.
Can Veldrin access my encrypted files?
Veldrin has no account, so there's no login through which anyone could reset or unlock your vault. Your pattern and recovery sentence are what open it, which is why the sentence matters.
Sources