Pattern vs PIN vs Face ID: which lock is safest?
There is no single safest lock. Each one is strong against some people and weak against others. Start with who you are keeping out, then pick.
Start with who, not which
People ask which lock is strongest. The better question is who you want to keep out. There are four kinds of person to think about:
- Someone who knows your iPhone passcode. A partner, a child, a flatmate.
- Someone watching as you unlock, next to you or behind you.
- Someone holding the phone who can point it at your face.
- Someone guessing, with time and the phone in hand.
No lock is best against all four.
Someone who knows your iPhone passcode
This is the most common case, and the one people forget.
On an iPhone, Face ID is a shortcut for the passcode, not a replacement. Apple’s own locks show this. The Hidden album and a locked app both open with Face ID, Touch ID or the iPhone passcode. So a person who knows your passcode can open them without your face.
Face ID inside a vault app often works the same way. Check what the app does when Face ID fails. If it falls back to the iPhone passcode, it adds no new secret.
A PIN or a pattern that belongs to the vault alone is different. It is a second secret. Knowing the phone’s passcode does not help.
Best here: a vault PIN or pattern that is not your iPhone passcode. Weakest: Face ID alone.
Someone watching
Face ID wins easily. There is nothing to see.
A PIN can be read from your thumb, more easily if it is short. A pattern is a shape, and shapes are easy to remember after one look. Some apps can hide the line as you draw, which helps. A pattern can also leave a smudge on a clean screen.
Best here: Face ID. Weakest: a short PIN or a simple pattern with the line showing.
Someone holding the phone to your face
Apple says Face ID is attention-aware. It checks that your eyes are open and that you are looking at the device. That makes it hard to use on someone asleep.
It is not a complete answer. Apple says the chance of a false match is higher for twins, for siblings who look like you, and among children under 13. And a person who is awake can be made to look at a phone.
A PIN or pattern is in your head. Nobody can take it from your face.
There is also a legal side. Rules on being made to unlock a device differ by country. This is not legal advice.
Best here: a PIN or pattern. Weakest: Face ID alone.
Someone guessing
Here the numbers matter.
| Lock | Possible combinations |
|---|---|
| 4-digit PIN | 10,000 |
| 6-digit PIN | 1,000,000 |
| Pattern, 3 × 3 grid, four dots or more | 389,112 |
| Pattern, 4 × 4 grid, six dots or more | about 4.35 trillion |
| Face ID | Apple: less than 1 in 1,000,000 chance that a random person matches |
A classic 3 × 3 pattern sits between a 4-digit and a 6-digit PIN. A 4 × 4 grid is far beyond both.
Face ID is not a secret someone can work through one guess at a time. Apple says it allows only five failed matches before the passcode is needed. Which brings you back to the passcode.
Two cautions about the numbers:
- People do not pick at random. 1234, birthdays and L-shaped patterns get tried first. The figures above are the best case.
- Speed matters more than count. A lock that makes you wait after a few wrong tries beats a bigger number with no waiting. More on this in how a pattern lock really works.
Best here: a long pattern on a large grid, or a long PIN, with waits after wrong tries. Weakest: a 4-digit PIN.
All four side by side
| Who | 4 or 6-digit PIN | Pattern | Face ID alone | Pattern or PIN, plus Face ID |
|---|---|---|---|---|
| Knows your iPhone passcode | Strong, if the PIN is different | Strong | Weak if it falls back to the passcode | Strong |
| Watching you | Weak | Weak to fair, better with the line hidden | Strong | Strong |
| Holding the phone to your face | Strong | Strong | Weak to fair | Strong |
| Guessing | Weak (4 digits) to fair (6) | Fair (3 × 3) to strong (4 × 4) | Strong | Strong |
So which should you use?
Use two, if the app lets you. The right way round is a code or pattern and Face ID, where the app asks for both. Then a watched pattern is not enough without your face, and your face is not enough without the pattern.
Be careful with apps that offer Face ID instead of the code. That is quicker, and it makes the vault only as strong as the weaker of the two.
If you can only have one, choose by your situation:
- Worried about family who know your passcode: a separate PIN or pattern.
- Worried about people watching in public: Face ID, or a pattern with the line hidden.
- Worried about a stolen phone and a patient thief: a long pattern on a large grid, in an app that slows down wrong guesses.
One more thing matters as much as the lock. Whatever opens the vault should also be what encrypts it. A strong lock on files that are only hidden protects little. See Are photo vault apps safe?
How Vahty does it
We make Vahty, a vault app for iPhone. It is in final testing and not on the App Store yet.
- It opens with a pattern on a 4 × 4 grid, six dots or more. A 5 × 5 grid is optional.
- The pattern is the encryption key, and the drawn line is hidden by default.
- Face ID or Touch ID can be added as a second lock. It is never offered instead of the pattern.
- After 5 wrong patterns the waits are 30 seconds, 1 minute, 5 minutes, 30 minutes, then 1 hour per try.
- For the case where someone makes you open the app, a decoy vault with its own pattern opens alone, and the lock screen looks identical.
The design is explained on the security page.
In short
- Face ID is best against watchers and weakest against people who know your passcode.
- A separate PIN or pattern is best against people who know your passcode and weakest against watchers.
- On numbers: 4-digit PIN 10,000, 3 × 3 pattern 389,112, 6-digit PIN 1,000,000, 4 × 4 pattern about 4.35 trillion.
- A code or pattern together with Face ID covers all four cases.
- Rules on being made to unlock a phone differ by country. This is not legal advice.
Questions
Which lock is safest for a vault app?
A long secret that is different from your iPhone passcode, with Face ID added as a second lock. On numbers alone, a 4 × 4 pattern of six dots or more has about 4.35 trillion possibilities, against 1,000,000 for a 6-digit PIN.
Is Face ID safer than a PIN?
Against guessing, yes. Apple puts the chance of a random person unlocking your iPhone with Face ID at less than 1 in 1,000,000. But on an iPhone, Face ID falls back to the passcode, so anyone who knows your passcode can usually get past it.
Is a pattern lock safer than a PIN?
It depends on the grid. A 3 × 3 pattern of four dots or more has 389,112 possibilities, fewer than a 6-digit PIN. A 4 × 4 pattern of six dots or more has about 4.35 trillion. Both are easier to watch than Face ID.
Can someone unlock my vault with my face while I sleep?
Apple says Face ID checks that your eyes are open and that you are looking at the device, which makes this hard. If it worries you, use a vault that asks for a code or pattern as well as Face ID, not Face ID alone.