How strong is your pattern?

Draw a pattern on a 5×5 grid and see how guessable it is. It runs entirely in your browser: nothing you draw is sent or saved.

Updated

Check a pattern

A 5 by 5 grid of dots. Draw a pattern across it with your finger or mouse, or type the dot numbers below.

Draw a pattern to check it. It never leaves this page.

What the numbers mean

  • Pearlin’s meter is the same one the app shows when you make a vault: Strong needs 10 or more dots and 4 or more turns, Fair needs 8 dots and 2 turns.
  • Patterns this long is roughly how many different patterns use exactly that many dots on a 5×5 grid. Each dot you add multiplies it by roughly 12 to 14, up to about 10 dots.
  • Guessing time matters for a copied vault file, which someone could attack on their own computers. Each guess costs a slow, memory-heavy calculation (Argon2id with 256 MiB of memory), which is why the numbers are this low. The two rates are assumptions to give a sense of scale.

How to draw a strong pattern

  1. Use 10 dots or more. Going from 6 dots to 10 makes about 27,000 times as many possible patterns.
  2. Turn often. Four turns or more, and not all at right angles.
  3. Jump. Join dots that aren’t next to each other, like a knight’s move in chess.
  4. Cross your own line at least once.
  5. Don’t start in a corner, and avoid letters, boxes, zigzags and your initials.
  6. Practise it a few times before you trust it, and write down the recovery phrase in case it doesn’t come back to you.

On a phone, it’s about shapes, not numbers

Nobody tries 19 million patterns by hand. Someone holding your unlocked phone tries the shapes people usually draw: an L, a Z, a square, a letter, a corner start. In a 2015 study of about 4,000 Android unlock patterns on a 3×3 grid, 44% started in the top-left corner and 77% started in a corner. Most moved left to right and top to bottom, and the most common length was just four dots. A few good guesses go a long way. That’s why the warnings above matter more than the big numbers when the risk is someone with your phone in their hand.

Pearlin doesn’t limit how many times someone can try a pattern, so a hard-to-guess shape is your protection. Each vault also has its own pattern, and the lock screen never shows how many vaults exist. The security model covers the rest, including the limits.

How we counted

A pattern here follows Pearlin’s rules: at least six dots and one turn, any dot can follow any other, and a line that crosses an unused dot on a straight line picks that dot up. Counting every pattern exactly isn’t practical, so we estimated each length from 200,000 random patterns using Knuth’s method, and checked the estimate against an exact count for short patterns (6,192 with three dots and 93,152 with four). Treat the counts as accurate to the first two digits.

The guessing times assume someone tries every pattern up to your length, in turn, and finds yours halfway through on average. Real attackers try likely shapes first, so a common shape is found much sooner than these times suggest.

Your pattern stays here

Everything on this page is worked out in your browser. The pattern isn’t sent anywhere, stored or logged, and our analytics are set to ignore the grid. Even so, check a pattern like yours rather than the one you actually use.

Sources

Pearlin is a private photo vault for iPhone and iPad. Each vault opens with its own pattern on this 5×5 grid, and has a recovery phrase in case you forget it. No account and no ads.

Download on the App Store