Use it to set a minimum length for users, administrators and service accounts.
Length
Password length is the most important factor in password strength: each extra character multiplies the number of combinations an attacker must try.
1. show running-config | include username|enable — any type 0, 5 or 7?
2. Replace with username <u> algorithm-type scrypt secret <pw> and enable algorithm-type scrypt secret <pw>.
3. security passwords min-length <n> set?
4. login block-for <s> attempts <n> within <s> against guessing.
5. Admin logins through AAA with MFA where possible.
policy defined → long unique secrets → stored as strong hashes → login attempts limited → MFA for privileged access → credentials changed when compromised
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Requiring complexity rules that lead to predictable patterns (
Summer2026!). - Low maximum length that blocks passphrases.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
At least 8 characters for user-chosen passwords with MFA, 15 or more without; allow long passphrases (64+). On IOS: security passwords min-length <n>. Pre-shared keys and SNMP secrets should be long and random.
show running-config | include username|enable— hash types used (9 or 8 good, 5 weak, 7 reversible, 0 clear text).show running-config | include security passwords|login block— minimum length and login blocking.show running-config | include password— clear-text or type 7 passwords left on lines and keys.show login— login failure blocking settings and state.
ReferenceWhat it is1 section · depth on demand
Recommended lengths
| Account type | Minimum |
|---|---|
| User accounts with MFA | 8 (NIST), 12–14 common in practice |
| User accounts without MFA | 15 |
| Admin and service accounts | 15–20+; service accounts 25+ random or gMSA |
| Device enable/local break-glass | 20+ random, stored in a vault |
Allow long passphrases (64+ characters) and paste from password managers.
ReferenceWhy it matters1 section · depth on demand
What it is
Length is the most important password property: each extra character multiplies the number of guesses. NIST SP 800-63B (rev. 4) requires at least 15 characters for single-factor passwords and 8 when used with MFA, and asks systems to allow at least 64. Allow spaces and passphrases.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Password length
Length is the strongest single property of a password. NIST SP 800-63B requires a minimum of 15 characters for passwords used as a single factor and 8 characters for passwords used only as part of multi-factor authentication, and says verifiers should permit at least 64 characters.
Length requirements (SP 800-63B)
| Use | Minimum | Maximum allowed |
|---|---|---|
| Password as the only factor | 15 characters | At least 64 should be permitted |
| Password within MFA | 8 characters | At least 64 should be permitted |
Related rules
| Rule | Detail |
|---|---|
| Unicode | Each code point counts as one character; normalise (NFC) before hashing |
| Full verification | The whole password is checked, not a truncated version |
| Whitespace and case | Verifiers may trim leading/trailing spaces or relax the first character's case, if the minimum still holds |
| Password managers and paste | Must allow managers and autofill; paste should be permitted |
Why length works
Each extra character multiplies the number of possible passwords. A four- or five-word passphrase is easier to remember than a short complex password and far harder to guess.
| Example | Length |
|---|---|
Tr0ub4dor&3 | 11: meets old complexity rules, too short |
copper lantern drifts south | 27: long, memorable |
On network devices
R1(config)# security passwords min-length 15
R1(config)# username breakglass privilege 15 algorithm-type scrypt secret <28-character-passphrase>
R1# show running-config | include min-length
security passwords min-length 15
security passwords min-length applies to local passwords on IOS. Administrator logins should normally go through AAA, where the directory enforces length; local break-glass passwords should be long and stored in a vault.
Documented example, not captured output.
Quick reference
Length matters more than complexity: each extra character multiplies the search space. A 16-character passphrase of random words resists offline cracking far better than an 8-character complex password.
security passwords min-length 15
aaa common-criteria policy ADMIN-PW
min-length 15
max-length 64
Allow long passwords and spaces (passphrases) everywhere; truncating or limiting length is a red flag in any system.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → Password Policy → Length. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%