This article is general educational information about password practices. It is not a security assessment of your systems. For organisational policies, consult your security team and current official guidance.
Password advice used to focus on rules: one capital letter, one number, change it every 90 days. Those rules produced passwords like Summer2024!, which satisfy every checkbox and are among the first things attackers try. Current guidance is simpler and more effective: make passwords long, random and unique, and back them up with a second factor.
How passwords are actually attacked
Understanding the attacks explains the advice.
- Credential stuffing. Attackers take email and password pairs leaked from one site and try them on many others. Reused passwords are the main target, however strong they are.
- Guessing with wordlists. Lists of common and previously leaked passwords, combined with predictable changes like capitalising the first letter or adding a year and an exclamation mark, crack most human-chosen passwords quickly.
- Offline cracking. When a site's password database is stolen, attackers can test enormous numbers of guesses per second against weakly hashed passwords. Only length and randomness slow this down.
- Phishing. A convincing fake login page captures the password directly, no matter how strong it is. This is where two-factor authentication and passkeys matter.
Length, randomness, uniqueness
Length
Every additional character multiplies the number of possible passwords by the size of the character set. Adding length is more effective than adding character types. For randomly generated passwords, 16 characters or more is a sound default for most accounts.
Randomness
The strength estimates you see in generators assume each character was chosen randomly. People are poor at randomness: we pick words, dates, keyboard patterns and predictable substitutions like @ for a. A password generator using a cryptographically secure random source, such as the Daily Dev Tools password generator, removes that weakness.
Uniqueness
A unique password per account limits the damage of any single breach. This is the hardest rule to follow without help, which is why password managers exist.
What entropy means
Entropy, measured in bits, estimates how many guesses an attacker would need for a randomly generated password. For a password of L characters chosen uniformly from a pool of N characters, entropy is L × log2(N). Each extra bit doubles the number of possibilities.
| Password type | Approximate entropy |
|---|---|
| 8 random lowercase letters | 38 bits |
| 12 random characters from letters, digits and 28 symbols (90 total) | 78 bits |
| 16 random letters and digits | 95 bits |
| 6 random words from a 7,776-word list | 78 bits |
The formula only applies to random passwords. Password123! has 12 characters from a large pool, but because it follows a common pattern, its real strength is close to zero.
Passphrases for the passwords you must remember
You will still need to type a few passwords from memory: your password manager's main password, your device login, perhaps your email. For these, a passphrase of several randomly chosen words works well. The well-known Diceware method rolls dice to pick words from a list of 7,776, giving about 12.9 bits per word. Six words, such as staple-orbit-lantern-quiet-mango-rust, give around 78 bits and are far easier to remember and type than a random string of similar strength.
The words must be chosen randomly. A meaningful phrase, a song lyric or a quote is much weaker because it is predictable.
Use a password manager
A password manager generates, stores and fills unique passwords for every account, so you only remember one strong passphrase. Reputable managers encrypt your vault on your device and can warn you about reused or breached passwords. Built-in browser and operating-system password managers are a reasonable choice for many people; dedicated managers add features such as sharing and cross-platform support. Whatever you choose, protect it with a strong passphrase and two-factor authentication.
Add a second factor
Two-factor authentication (2FA) means a stolen password alone is not enough. Options, from strongest to weakest against phishing:
- Passkeys and hardware security keys, which are tied to the real website and cannot be phished in the usual way.
- Authenticator app codes (time-based one-time passwords).
- SMS codes, which are better than nothing but vulnerable to SIM-swap attacks.
Where a site offers passkeys, consider using them: they replace the password with a cryptographic key pair stored on your device or in your password manager.
What current guidance says about rules
The US National Institute of Standards and Technology (NIST), in its digital identity guidelines (SP 800-63B), advises services to favour length, to allow long passwords and all printable characters including spaces, to check new passwords against lists of known-compromised values, and not to force arbitrary composition rules or periodic changes without evidence of compromise. If you run a service, those principles make passwords both stronger and easier for your users. Check the current edition of the guidelines for exact requirements, as they are revised periodically.
Check for breaches
If a service you use is breached, change that password immediately, and anywhere else you reused it. Many password managers check for breached passwords automatically. Services such as Have I Been Pwned let you check whether your email appears in known breaches and use a privacy-preserving method to check passwords without sending them in full.
A short checklist
- Use a password manager and generate a unique password for every account.
- Make generated passwords at least 16 characters.
- Use a random multi-word passphrase for the few passwords you must remember.
- Turn on two-factor authentication, preferring passkeys or security keys for important accounts.
- Never send passwords by email or chat, and never type them into a page you reached from an unexpected link.