Old advice said a password must mix capitals, digits and symbols, and must be changed every few months. Current guidance says something different: length and uniqueness matter most. This lesson shows why, with numbers.
Counting the possibilities
Attackers do not need to try them all. On average they find a random password after about half the possibilities. And they try likely passwords first, so a password made from a name and a year is guessed far sooner than the count suggests.
| Password | Possible passwords | Time to try all, fast hash |
|---|---|---|
| 8 small letters | ||
| 8 characters of every kind | ||
| 12 small letters | ||
| 16 small letters | ||
| 5 random words from a list of 7,776 | ||
| 6 random words from a list of 7,776 |
To count the possible passwords of one kind, multiply the number of choices for each place. Eight places with 26 choices each: 26 × 26 × … eight times, written 26^8. The number after the ^ says how many copies of 26 are multiplied together.
Length matters more than variety
Adding a kind of character raises the choices for each place, for example from 26 to 95. Adding a place multiplies the total by the number of choices again. In the figure, 12 small letters give more possible passwords than 8 characters of every kind. A passphrase of several random words is long, easy to remember and hard to guess, as long as the words are truly picked at random.
What current guidance says
The United States standards body NIST publishes guidance on passwords (SP 800-63B), followed by many organisations worldwide. Its main points:
- Length matters most: at least 15 characters when a password is the only proof, and at least 8 when another factor is also used.
- Do not force rules such as “one capital, one digit, one symbol”. They push people to patterns like Name@2024.
- Do not force regular changes. Change a password when there is a sign it has leaked.
- Check new passwords against lists of leaked and common passwords, and refuse those.
- Allow long passwords, spaces and pasting, so password managers work.
One of this course’s books still recommends changing passwords every 60 to 90 days. That advice is now out of date.
Lab: the password guess-timer
Type made-up passwords and see how many possibilities they have and how long guessing would take in three situations. Try sunita1990, then Sunita@1990, then four random words such as tiger lamp river cloud, then six, such as tiger lamp river cloud mango bench. Nothing you type leaves this page.
PASS-2 counts as completed once you step through the figure to its last step.