Operations and security 4 min read Updated
A password policy that users can follow
In short
Set a minimum length, allow long passwords, block known weak choices, and change passwords only when there is a sign of compromise.
A user forgets a password and wants back in. Your password policy tells them what an acceptable password looks like and what to do when that happens. Current guidance from NIST and the UK National Cyber Security Centre (NCSC) differs from the complexity and expiry rules that many organisations still use. Start with length. The full texts are NIST SP 800-63B-4 and the NCSC guidance on updating your approach to passwords.
Set the minimum length first
NIST sets the minimum length according to how the password is used. A password that is the only factor needs at least 15 characters. A password used within a multi-factor process needs at least 8. Systems should also be able to accept passwords of at least 64 characters.
| Situation | Minimum length | Maximum length |
|---|---|---|
| Password as the only factor | 15 characters | At least 64 characters must be accepted |
| Password within a multi-factor process | 8 characters | At least 64 characters must be accepted |
The NCSC advises a minimum length so that very short passwords cannot be used, and no maximum below what your system can handle.
Drop the composition rules
NIST does not allow composition rules, such as requiring a mix of character types. The NCSC does not recommend complexity requirements for passwords that users choose, because people then fall into predictable patterns. As an alternative, it suggests passphrases, such as the three random words technique. Such a passphrase is easier to remember and harder to guess.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Do not set scheduled password expiry
NIST says that systems must not require users to change passwords periodically. They must, however, force a change when there is evidence that a password has been compromised. The NCSC reaches the same conclusion from a practical angle. It says that regular changes do more harm than good, and it advises users to change a password when it is known or suspected to be compromised.
Block known weak passwords
NIST requires the system to check a new password, when it is set or changed, against a blocklist of commonly used, expected or compromised passwords. The whole password is compared, not fragments of it. If a password is rejected, the system must explain why, so that the user can choose another. The NCSC recommends a deny list of the most common passwords, which can come from published lists or be tailored to your organisation. Where passwords cannot be checked when they are created, the same source suggests searching your existing password database for hashes of deny-listed passwords.
A checklist for your policy
- Set the minimum length by use: 15 characters for a password that is the only factor, and 8 characters within a multi-factor process.
- Accept passwords of at least 64 characters, and do not cap length below that.
- Drop composition rules and scheduled expiry.
- Check every new password against a blocklist of compromised and commonly used passwords.
- Tell users why a password was rejected, and let them choose another.
- Force a change when there is evidence that a password has been compromised.
- Limit repeated failed attempts, as explained in the article on rate limiting and abuse protection.
Storing accepted passwords safely is a separate task, covered in the article on storing passwords correctly. Stronger protection for administrator accounts is covered in the article on two-factor authentication for admin access.
This note summarises NIST SP 800-63B-4 and NCSC guidance. The minimum lengths quoted apply to the cases described in the NIST text. Read both sources in full before you adopt them, and check whether rules for your sector apply.
Common questions
- Is a 15-character minimum always needed?
- NIST asks for at least 15 characters when a password is the only factor. Where the password is used within a multi-factor process, the minimum is 8 characters.
- Should I still force password changes every few months?
- NIST says that verifiers must not require periodic changes, and the NCSC says regular changes do more harm than good. Change a password when a compromise is known or suspected.
- What should the policy tell a user whose password is rejected?
- NIST requires the system to give the reason for the rejection, so that the user can choose a different password. A bare message that the password is not allowed does not meet that requirement.
Sources
- NIST SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management, NIST. Accessed 24 November 2026
- Updating your approach, NCSC (UK), Passwords collection. Accessed 24 November 2026
Further reading
-
Storing passwords correctly in PHP
Store passwords with password_hash() using PASSWORD_DEFAULT or Argon2id, check them with password_verify(), and rehash older hashes at the next login.
-
Two-factor sign-in for admin accounts
Require a second factor for every admin account, prefer phishing-resistant methods, and keep recovery from becoming a way around MFA.
-
Rate limiting that protects forms and logins
Rate limiting caps how often a client may repeat an action, and a 429 response with Retry-After tells honest clients when to try again.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea