What NIST SP 800-63B (Rev. 4) actually governs
Published by the National Institute of Standards and Technology, SP 800-63B(Digital Identity Guidelines: Authentication and Authenticator Management) is the authoritative federal standard for user authentication—and the de facto compliance baseline for SOC 2, ISO 27001, PCI-DSS, HIPAA, and modern web applications worldwide.
While SP 800-63B Rev. 3 (2017) famously reversed decades of harmful password theater,Revision 4 sharpens the normative language (turning several earlier “SHOULD NOT” recommendations into strict “SHALL NOT” requirements), introduces a 15-character floor for single-factor password-only accounts, and aligns authenticator assurance levels (AAL1, AAL2, AAL3) with phishing-resistant FIDO2/WebAuthn passkeys.
Old password rules vs modern NIST Rev. 4 rules
Most legacy enterprise password policies still enforce rules written in 2003 that empirical cracking research has thoroughly discredited. Use the side-by-side matrix below when auditing an authentication service or updating internal compliance docs.
| Policy area | Legacy 2003-era rule | Modern NIST SP 800-63B (Rev. 4) | Security rationale |
|---|---|---|---|
| Minimum length | 8 characters with complex symbol requirements | Minimum 8 characters (with MFA); minimum 15 characters if password is the sole authentication factor | Length drives entropy far more reliably than predictable character substitutions like P@ssw0rd1. |
| Maximum length | Often capped at 12, 16, or 32 characters (or silently truncated at 72 bytes by bcrypt) | MUST allow at least 64 characters (longer strongly encouraged) with zero silent truncation | Long passphrases and password-manager-generated strings need generous ceiling limits. |
| Character sets & spaces | Ban spaces, reject Unicode, restrict allowed special characters | MUST accept all printable ASCII characters, spaces, and Unicode characters | Spaces make multi-word Diceware passphrases easy to type and remember. |
| Composition rules | Require 1 uppercase, 1 lowercase, 1 digit, and 1 special character | MUST NOT impose arbitrary character-class composition rules | Mandatory complexity pushes humans into predictable patterns (Capital first letter, 1! at the end) that cracking rules target first. |
| Periodic rotation | Force password expiration every 60 or 90 days | MUST NOT require periodic password changes without evidence of compromise | Frequent forced resets lead users to increment trailing numbers (Winter2026! → Spring2026!) or write passwords on sticky notes. |
| Security questions & hints | "What was your first pet?" and public password hints | MUST NOT use knowledge-based authentication (KBA) or password hints | KBA answers are low-entropy, searchable on social media, and frequently leaked across breaches. |
| Breached-password blocklists | Rarely checked; allowed top-10,000 leaked passwords if they met regex rules | MUST check new passwords against known breached corpora, dictionary words, and context strings | Blocks credential stuffing and compromised passwords before an account is ever attacked. |
| Paste & visibility UX | Blocked Ctrl+V paste into password inputs and hid typed text completely | MUST allow paste functionality and SHOULD provide a show-password toggle | Blocking paste actively breaks password managers and pushes users back to short, reused passwords. |
| Online brute-force protection | Inconsistent lockouts (or permanent lockouts enabling DoS attacks) | MUST rate-limit consecutive failed attempts (at most 100 attempts; tighter in practice) | Prevents online guessing without letting attackers permanently lock out victims via account-lockout DoS. |
Length minimums, 64-char support, and spaces
Entropy scales exponentially with length and only logarithmically with character-set size. A 9-character human password forced to satisfy “upper + lower + digit + symbol” typically lands on something like Summer26!—cracked in seconds by rule-based GPU wordlists. By contrast, a 5-word EFF Diceware passphrase using only lowercase words and spaces delivers 64.6 bits of true entropy (over 2.8 × 1019combinations) and is effortless to type.
To comply with NIST SP 800-63B Rev. 4, verifiers must enforce four concrete length and input rules:
- 8-character floor (with MFA): Minimum 8 characters when the account requires a second factor (AAL2).
- 15-character floor (password-only): Minimum 15 characters whenever a password is the sole authentication factor (AAL1 without MFA).
- 64-character minimum ceiling: Accept at least 64 characters—and ideally 128+ characters—without silently truncating input behind the scenes. (Watch out for legacy
bcryptimplementations that truncate at 72 UTF-8 bytes!) - All printable ASCII, Unicode, and spaces: Never strip spaces or forbid specific symbols like
",', or\—if a symbol breaks your backend, you have a SQL-injection or serialization bug, not a password-policy requirement.
Need NIST-compliant credentials for your own accounts? Generate high-entropy random strings with our password generator, readable strings without look-alike characters with no-ambiguous-character passwords, or multi-word passphrases with our passphrase generator.
Breached-password screening and rate limiting
Removing arbitrary regex rules does not mean accepting password12345678. NIST replaces composition theater with two far stronger defenses:
1. Blocklist screening via k-anonymity
When a user creates or changes a password, the verifier MUST compare it against a blocklist containing:
- Passwords exposed in previous third-party data breaches (e.g., Have I Been Pwned Pwned Passwords corpus of 900M+ breached passwords).
- Common dictionary words and top leaked passwords.
- Context-specific strings: the service name, the user's username, and email address.
- Repetitive or sequential characters (e.g.,
aaaaaaaaaaaaaaaor123456789012345).
To query Have I Been Pwned without transmitting user passwords to an external server, use itsk-anonymity API: compute SHA-1(password) on your backend, send only the first 5 hexadecimal characters (GET /range/21BD1), receive ~500 matching hash suffixes, and check for a match locally in memory. High-traffic or air-gapped services can download the complete Pwned Passwords dataset locally and query it in microseconds.
2. Online guessing rate limits
Even a 15-character password is vulnerable to credential stuffing if your login endpoint allows unlimited requests per second. NIST requires verifiers to limit consecutive failed authentication attempts to no more than 100—and production web apps should combine per-account exponential backoff, IP/ASN anomaly throttling, and step-up verification rather than permanent hard lockouts that attackers can abuse for denial of service.
Unicode NFKC normalization explained
Supporting international Unicode characters introduces a subtle cross-platform trap. The accented letter é can be encoded two completely different ways in UTF-8:
- Precomposed (NFC): A single code point
U+00E9(bytesC3 A9). - Decomposed (NFD): Latin
e(U+0065) followed by combining acute accentU+0301(bytes65 CC 81).
If a user sets a password on macOS (which frequently emits NFD or NFC depending on input method) and logs in from Windows or Android, raw byte hashing produces two completely different digests—locking the user out even though they typed the exact same characters.
NIST SP 800-63B recommends applying Unicode Normalization Form KC (NFKC) (or NFKD) consistently before checking length, querying breached corpora, and feeding bytes into your KDF. Note that NFKC also folds compatibility equivalents (like full-width Japanese ASCII digits 123 to standard 123), which eliminates visual confusion while keeping hashing deterministic across every OS.
Salted memory-hard hashing (Argon2id, scrypt, PBKDF2)
Passwords must never be stored in plaintext, encrypted reversibly, or hashed with fast general hashes like SHA-256, SHA-512, or MD5. NIST SP 800-63B requires a unique cryptographically random salt of at least 32 bits (use 128 bits / 16 bytes in practice) combined with an approved one-way key derivation function tuned to resist offline cracking.
| Algorithm | Recommendation | Practical parameter baseline | Engineering caveats |
|---|---|---|---|
| Argon2id (RFC 9106) | Recommended primary choice | m = 19 MiB, t = 2, p = 1 (OWASP min) or m = 64 MiB, t = 3, p = 4 for high-value vaults | Memory-hard hybrid resistant to GPUs, ASICs, and cache-timing side channels. |
| scrypt | Strong memory-hard alternative | N = 2^17 (131,072), r = 8, p = 1 (~128 MiB RAM) | Well-vetted and built into Node.js crypto and Go stdlib; requires careful N/r tuning. |
| PBKDF2-HMAC-SHA256 | Permitted (FIPS 140-3 compatibility) | 600,000+ iterations (OWASP 2026 baseline); NIST floor is lower but inadequate alone against GPUs | Use only when strict FIPS-validated module compliance mandates PBKDF2; pair with high password length or keyed pepper. |
| bcrypt | Legacy acceptable (watch 72-byte limit) | Cost factor 10–12 (minimum 10); pre-hash with SHA-256 + Base64 if supporting >72 bytes | Silently truncates UTF-8 input at 72 bytes unless pre-hashed—violating NIST 64+ char Unicode support if mishandled. |
NIST also highlights an optional defense-in-depth upgrade: adding a server-side keyed HMAC / secret pepper stored in a Hardware Security Module (HSM) or KMS outside the main database. If an attacker dumps your SQL user table via SQL injection without compromising the HSM, offline password cracking becomes infeasible even against weaker legacy passwords.
To quantify how KDF choice affects real GPU cracking speeds, test your parameters in our KDF Crack Time Calculator, inspect bcrypt hashes with our bcrypt generator, or read our full architectural deep dive on password manager cryptography.
// Reference password validation & storage pipeline (NIST SP 800-63B Rev. 4)
// SECURE: Normalize -> Check length -> Check breach corpus (k-anonymity) -> Argon2id hash
async function registerPassword(rawInput: string, contextBlocklist: string[]) {
// 1. Normalize Unicode via NFKC so visually identical inputs hash consistently
const normalized = rawInput.normalize('NFKC')
// 2. Enforce NIST length bounds (8+ with MFA, 15+ for password-only; allow >= 64)
// Never silently truncate and never ban spaces or symbols
const codePoints = Array.from(normalized).length
if (codePoints < 15) throw new Error('Use at least 15 characters for password-only login.')
if (codePoints > 128) throw new Error('Maximum supported length is 128 characters.')
// 3. Reject context-specific terms (username, email local-part, app name)
const lowered = normalized.toLowerCase()
if (contextBlocklist.some((term) => term && lowered.includes(term.toLowerCase()))) {
throw new Error('Avoid including your username or service name in your password.')
}
// 4. Screen against breached-password corpora using SHA-1 k-anonymity (5-char prefix)
// Only the first 5 hex chars of SHA-1(normalized) leave your server
if (await isInBreachedCorpusKAnon(normalized)) {
throw new Error('This password appears in known data breaches. Choose another.')
}
// 5. Hash with a memory-hard KDF (Argon2id) + unique >=128-bit CSPRNG salt
return argon2idHash(normalized, { memoryKiB: 65536, timeCost: 3, parallelism: 4 })
}Practical developer implementation checklist
Use this concise checklist during architecture reviews or authentication sprints:
- Enforce sensible length bounds: Require
>= 8characters when MFA is mandatory and>= 15characters when password-only; accept at least 64 (prefer 128) characters with zero silent truncation. - Delete legacy complexity regexes: Remove “must contain 1 uppercase, 1 digit, 1 symbol” validators and permit spaces and Unicode.
- Normalize with NFKC: Run
password.normalize('NFKC')consistently on registration, password change, and login before hashing. - Screen against breached corpora: Integrate HIBP k-anonymity (or a local breach corpus) plus context checks (username, email, service name) on registration and reset.
- Use Argon2id with 128-bit salts: Store parameters alongside the hash in PHC string format (
$argon2id$v=19$m=65536,t=3,p=4$...) and transparently re-hash on next successful login whenever you upgrade parameters. - Enable password-manager-friendly UX: Never block
pasteevents, use properautocomplete="current-password"andautocomplete="new-password"attributes, and offer a show-password toggle. - Retire 90-day rotation and security questions: Force resets only on compromise signals, and replace KBA with verified email/MFA recovery or FIDO2 passkeys.
- Throttle online guesses cleanly: Rate-limit failed logins per account and IP without exposing user-enumeration timing leaks (run a dummy hash verification when an account is not found).
Primary NIST and OWASP references
- NIST SP 800-63B Rev. 4 — Digital Identity Guidelines: Authentication and Authenticator Management
- OWASP Password Storage Cheat Sheet
- OWASP Authentication Cheat Sheet
- Have I Been Pwned — Pwned Passwords k-Anonymity API
- Unicode Standard Annex #15 — Unicode Normalization Forms (NFKC)
Frequently asked questions
What is the minimum password length under NIST SP 800-63B Rev. 4?
NIST SP 800-63B Rev. 4 requires a minimum length of 8 characters when the password is paired with multi-factor authentication, and raises the minimum to 15 characters when a password is the sole authentication factor (no MFA). Verifiers must also accept passwords of at least 64 characters.
Why did NIST ban mandatory uppercase, number, and symbol complexity rules?
Empirical password-cracking research showed that mandatory composition rules push humans toward predictable templates—such as capitalizing the first letter and appending a digit and exclamation mark—while frustrating users into reusing passwords or rejecting passphrases. Length plus screening against breached-password lists yields significantly stronger real-world security.
Does NIST still recommend changing passwords every 90 days?
No. NIST SP 800-63B explicitly prohibits forcing arbitrary periodic password changes unless there is evidence of compromise (such as a breach, phishing incident, or suspected unauthorized access). Forced rotation degrades password quality without stopping active attackers.
How does breached-password screening work without sending user passwords to a third party?
Using k-anonymity (as pioneered by Have I Been Pwned Pwned Passwords), your server computes the SHA-1 hash of the candidate password and sends only the first 5 hexadecimal characters to the API (or queries a locally mirrored prefix database). The API returns all matching hash suffixes, and your server checks for a match locally without ever exposing the password or full hash.
Why does NIST SP 800-63B recommend Unicode NFKC normalization for passwords?
Many Unicode characters can be represented by different byte sequences depending on the operating system or keyboard (for example, precomposed é versus e plus a combining accent). Normalizing password input with NFKC before hashing ensures a user can reliably sign in across macOS, Windows, iOS, and Android without unexpected lockouts.