Are pattern passwords safe?
Last updated
Pattern passwords, the kind built from words in a recognisable structure like Word-Word-Word7!, are safe enough for many accounts if the words are picked at random from a large list and the password is long enough. But they are always weaker than a fully random password of the same length, because an attacker who knows the pattern only has to guess the words, not every character. A four-word pattern password is a sensible choice for accounts where you need to remember it. For your most important accounts, use more words or a random password stored in a password manager.
That's the short answer. The rest of this guide explains why, with real numbers.
What "pattern password" means
A pattern password follows a structure. Common examples:
- Words joined together:
CopperMeadowLantern - Words with separators:
copper-meadow-lantern - Words with a number and symbol bolted on:
Copper.Meadow.Lantern4! - Words with letters swapped for look-alike numbers:
C0pp3r-M34d0w
The memorable passwords on this site are pattern passwords. That's not a flaw we're hiding. It's the trade-off that makes them memorable, and the generator shows a warning on every one of them for that reason.
How attackers deal with patterns
When a password database is stolen, attackers don't try every combination of characters in order. They try the most likely passwords first:
- Passwords from earlier breaches, which run to hundreds of millions of real examples
- Dictionary words, names and places
- Combinations of words, with common tricks applied: capitals at the start, numbers and symbols at the end,
aswapped for4,ofor0
Each of these tricks is a rule in standard cracking software. So swapping letters for numbers, or adding ! at the end, adds very little real strength. An attacker targeting word-based passwords will simply run every combination of words from a list, with those rules applied.
What makes a pattern password strong anyway
If the attacker knows the pattern, what's left for them to guess is which words you used. That's a lot of guessing if:
- the words were picked at random, not chosen by you, and
- the list they came from is large, and
- there are enough of them.
This is measured in bits of entropy. Each bit doubles the number of guesses needed. A word picked at random from a list of 500 is worth about 9 bits, because 2 to the power of 9 is about 500. Four such words are worth about 36 bits, plus a few more for random separators and a random number and symbol.
On this site, the generator calculates entropy the strict way: it assumes the attacker knows our exact wordlists and your settings, and only the random choices are unknown. Under that assumption:
- 4 words from the Animals theme: about 50 bits
- 5 words: about 61 bits
- 6 words: about 72 bits
For comparison, a fully random 16-character password using letters, numbers and symbols is about 99 bits. The same length of pattern password is always far less than that, which is why the generator shows both figures side by side.
What those numbers mean in time
How long a password survives depends on where the attacker is guessing. These are average times, assuming the attacker knows exactly how the password was made:
Guessing at a login page that limits attempts (about 100 guesses an hour): even a 4-word password would take hundreds of millions of years.
A stolen database, stored properly (a slow hashing method, about 10,000 guesses a second): 4 words take around 2,000 years on average; 5 words take millions of years.
A stolen database, stored badly (a fast hash, about 10 billion guesses a second): 4 words fall in under a day. 5 words take a few years. 6 words take thousands of years.
You can't know how a website stores your password. Most large services store them properly, but breaches of badly built sites still happen. That's why the honest advice is:
- 4 random words: fine for everyday accounts, especially with two-factor authentication on.
- 5 or 6 random words: for your email, your password manager, and anything financial.
- A fully random password from a password manager: for everything you don't need to type from memory.
When pattern passwords are a bad idea
- When you choose the words. Personal or meaningful words shrink the search enormously.
Bella-Wembley-2015might be your dog, your favourite stadium and the year you married, and all three might be on your social media. - When the words are a known phrase. Song lyrics, quotes, film titles and proverbs are in cracking dictionaries.
- When there are too few words. Two words from any list can be found quickly in a stolen database.
- When you reuse it. A strong pattern password reused on ten sites is only as safe as the weakest of those ten sites.
Are random passwords always better, then?
Strictly, yes: for the same length, a random password is much stronger. But strength you can't use isn't much help. If a password is so hard to remember that you write it on a sticky note, reuse it everywhere, or reset it every time you log in, the theoretical strength doesn't protect you.
The NCSC makes the same point in the logic behind three random words: passwords people can actually remember lead to better habits overall. Use memorable pattern passwords where you need to type them from memory, and random passwords everywhere a password manager can type them for you.
Checking a pattern password's strength
Online strength meters often overrate pattern passwords, because they don't know the list your words came from. A password like Copper-Meadow-Lantern might be rated "very strong" by a general checker. Our strength meter shows the lower, exact figure, and never labels a pattern password "Very strong", however long it is.
If a site's meter tells you a four-word password is excellent, it's probably assuming the words were chosen in a way that's harder to guess than they really are. The safe assumption is always that the attacker knows how you made it.
The bottom line
Pattern passwords are a reasonable compromise when you need to remember a password. Pick the words at random, use at least four, never reuse them, and turn on two-factor authentication. For a step-by-step method, see how to create a memorable password.
Related
- How to create a memorable passwordThe random-words method, step by step, and how long the result needs to be.
- Passphrase vs password: which is better?How the two compare on strength, memorability and typing, with real numbers.
- What makes a password weak?Eight common mistakes, why attackers exploit them, and the fix for each.
More questions? The password FAQ has short answers, or browse all guides.