1 / 6 · Intermediate
Passwords and passkeys
Since July 2025 the US standard NIST SP 800-63B-4 has said a password used on its own must be at least 15 characters, and that services must not force you to change it on a schedule.
Jump to the 10 practice questionsYou will learn
- Say what makes a password strong today
- Count how many guesses a password needs
- Explain how a passkey signs you in
1Explain
"Summer2024!" ticks every box. So why is it weak?
Many people still believe a strong password needs a capital letter, a digit and a symbol, and that changing it every 90 days keeps it safe. Sign-up forms taught exactly that for years. Look at what the rules produced. "Summer2024!" meets all of them. Ninety days later it turns into "Autumn2024!", and anyone who saw the first one can guess the second. The rules made passwords harder to remember without making them much harder to guess.
2Problem
Every 90 days
What does NIST say about forcing a password change every 90 days?
Hint
Only when there is evidence of a compromise.
Solution
Answer: Services must not, unless there is evidence of compromise
Periodic changes led to predictable variations; NIST forbids them without cause.
3Problem
A forbidden rule
Which rule does NIST forbid services to impose?
Hint
"One capital, one digit, one symbol".
Solution
Answer: Requiring a mix of character types
Composition rules such as "one symbol" must not be imposed.
4Explain
What the 2025 US standard asks for instead
The current US guideline, NIST Special Publication 800-63B-4, finalised in July 2025, turns those habits around. A password used on its own must be at least 15 characters. If it is only one part of a multi-factor login, the minimum is 8. Services should allow at least 64 characters and accept spaces and all printable characters, and they must not impose other composition rules such as "one symbol". They must not force periodic changes either.
5Problem
The minimum on its own
Under NIST SP 800-63B-4, what is the minimum length of a password used on its own?
characters
Hint
More than the old 8.
Solution
Answer: 15 characters
NIST requires at least 15 characters when the password is the only factor. The 8-character minimum applies only when another factor also protects the login.
6Problem
A breached password
What should a service do if your new password appears in a list of breached passwords?
Hint
NIST asks services to check a blocklist.
Solution
Answer: Reject it and explain why
NIST: require a different secret and give the reason.
7Explain
Counting what a guesser has to get through
Why does length win? Each extra character multiplies the number of possible passwords. Eight lowercase letters give 26 to the power 8, about 209 billion combinations. A computer testing a stolen password file works through that quickly. Four words picked at random from a list of 7,776 give about 3.66 × 10¹⁵. The table shows how fast the counts grow, and the code exercise further down lets you compute two of them yourself.
| Password | Possible combinations |
|---|---|
| 8 lowercase letters | 26⁸ ≈ 2.09 × 10¹¹ |
| 8 of 95 printable characters | 95⁸ ≈ 6.63 × 10¹⁵ |
| 4 random words from 7,776 | 7,776⁴ ≈ 3.66 × 10¹⁵ |
| 5 random words from 7,776 | 7,776⁵ ≈ 2.84 × 10¹⁹ |
| 16 lowercase letters | 26¹⁶ ≈ 4.36 × 10²² |
8Explore
Try the counts
Each extra position multiplies the count by the number of choices. 7776 is a word list: then the length counts words.
const choices = 26;
const length = 8;
console.log(choices ** length);2088270645769Problem
Eight lowercase letters
How many possible passwords are there of 8 lowercase letters? Answer in billions, rounded.
billion
Hint
26 ** 8 in billions.
Solution
Answer: 209 billion
Each of the 8 positions has 26 choices, so multiply the choices: 26⁸ = 208,827,064,576, about 209 billion. Multiplying 26 by 8 would not count the combinations.
10Practice
Two exponents
Change the two exponents so the program prints the number of possible 8-letter lowercase passwords, then the number of possible 4-word passphrases.
208827064576
3656158440062976// Possible passwords = (choices per position) ** (length)
const letters = 26; // a to z
const words = 7776; // a list of 7,776 words
console.log(letters ** 1); // change: 8 lowercase letters
console.log(words ** 1); // change: 4 random words
Hint
The length goes in the exponent: 8 letters, 4 words.
A solution
// Possible passwords = (choices per position) ** (length)
const letters = 26; // a to z
const words = 7776; // a list of 7,776 words
console.log(letters ** 8); // 8 lowercase letters
console.log(words ** 4); // 4 random words
11Explain
Why one leak spreads to other accounts
CISA, the US cybersecurity agency, sums up a strong password in three words: long (at least 16 characters), random, and unique to each account. Random can mean a string of mixed characters or a passphrase of four to seven unrelated words. Unique matters most of all. When one site leaks, criminals try the same email and password on other sites, so a reused password turns one breach into many. Nobody can remember dozens of long random passwords.
12Problem
Why unique
Why are unique passwords so important?
Hint
Leaked logins are tried elsewhere.
Solution
Answer: Leaked logins are tried on other sites
With a unique password, one leak stays one leak.
13Problem
CISA's length
CISA says a strong password is at least how many characters long?
characters
Hint
One more than the NIST minimum.
Solution
Answer: 16 characters
Secure Our World: long means at least 16 characters.
14Explain
A passkey leaves nothing to type and nothing to steal
A passkey replaces the shared secret with public-key cryptography. MDN describes it as a key pair bound to your account on one website. The private key stays in an authenticator on or attached to your device, and you open it with your device PIN, fingerprint or face. The public key sits on the website's server. To sign in, the site sends a challenge and your device signs it.
A passkey sign-in. The private key signs a challenge on your device; the website only holds the public key.
15Problem
The private key
Where is the private key of a passkey kept?
Hint
It never leaves your side.
Solution
Answer: In an authenticator on or attached to your device
The private key is held by an authenticator on or attached to your device. The website keeps the public key to check signatures, not the private key that creates them.
16Problem
Passkeys and fake sites
Why can a phishing site not use your passkey?
Hint
A passkey is tied to one domain.
Solution
Answer: Each passkey is tied to the real site's domain
The browser offers a passkey only to the domain it belongs to.
17Explain
Where to start
Where to start? Give your email account a long passphrase first, because the email account can reset the others. If you use a password manager, give it its own master passphrase and memorise that. Keep a different password for email in the manager, and do not reuse the master passphrase there. Then change every password you know you have reused, beginning with banking and shopping accounts. When a site offers to create a passkey, saying yes is usually the quickest upgrade.
18Problem
The strongest choice
Which is the strongest choice for a new account?
Hint
Long, random and unique.
Solution
Answer: A unique passphrase of 5 random words, saved in a password manager
Long, random and unique, and nothing to remember.
19Practice
A sign-up field that follows NIST
This sign-up field breaks three NIST rules. Remove the 12-character maxlength and the onpaste blocker, and add minlength="15" and autocomplete="new-password" so password managers can fill it.
- no 12-character limit
- paste allowed
- minlength 15
- autocomplete new-password
<form>
<label for="pw">New password</label>
<input id="pw" type="password" maxlength="12" onpaste="return false">
<button>Create account</button>
</form>Hint
Remove two attributes and add two.
A solution
<form>
<label for="pw">New password</label>
<input id="pw" type="password" minlength="15" autocomplete="new-password">
<button>Create account</button>
</form>20Explain
Common mistakes
"Add a capital, a digit and a symbol and the password is strong."
NIST SP 800-63B-4 now forbids services to impose rules like this. A word plus "2024!" satisfies them, as Summer2024! shows. Length does far more: in the table, 16 lowercase letters (about 4.36 × 10²²) beat 8 characters drawn from all 95 printable ones (about 6.63 × 10¹⁵).
"Changing my password every 90 days keeps me safe."
Forced changes mostly produce the next variation, Summer2024! becoming Autumn2024!. NIST says services must not force periodic changes and should require a new password only when there is evidence that the old one has been compromised.
"My password is long, so it is fine even though it showed up in a breach."
Once a password is in a breach list, attackers try it first, whatever its length. That is why NIST asks services to check new passwords against a blocklist of breached ones and to explain the refusal.
"One really strong password for every site is enough."
Strength does not help here. Another site leaks it, and that is that. Criminals try leaked logins elsewhere (credential stuffing), so only a different password per account keeps one leak to one account.
21
Summary
- NIST: at least 15 characters alone, 8 with MFA; no composition rules; no forced periodic changes.
- CISA: long, random, unique; a password manager makes that possible.
- Reused passwords turn one breach into many.
- Passkeys use a key pair tied to the site, so they resist phishing.