What a policy sets
| Element | Typical rule | Why |
|---|---|---|
| Length | At least 12 to 14 characters; allow long passphrases | Length defeats guessing more than special characters |
| Complexity | Allow all characters; reject common and breached passwords | Blocks Password123 even when it meets old rules |
| Uniqueness | A different password for every system | One breach must not open other systems |
| Expiry | Change on evidence of compromise, not on a calendar | Forced rotation produces weaker passwords |
| Lockout and rate limiting | Lock or delay after repeated failures | Slows brute-force and guessing |
| Storage | Store only salted hashes with a slow algorithm | A stolen database should not reveal passwords |
| Defaults | Change every default password at install | Default credentials are public knowledge |
| Alternatives | MFA, certificates, biometrics, password managers | Remove or reduce the password as the only factor |
Why length and uniqueness win
An attacker with a stolen hash guesses offline, as fast as hardware allows. Every added character multiplies the work, so a 16-character passphrase is far stronger than an 8-character password with symbols. Reused passwords are the other large risk: a leak from one website becomes access to every account that shares the password. A password manager lets people use a long, unique password everywhere without memorising them.
Password types on Cisco IOS
| Type | Meaning | Strength |
|---|---|---|
| 0 | Plain text, as typed | None: anyone who reads the configuration sees it |
| 5 | MD5 hash (enable secret on older software) | Weak by today's standards |
| 7 | Cisco's reversible scrambling (service password-encryption) | Very weak: easily decoded, only hides it from a glance |
| 8 | PBKDF2 with SHA-256 | Strong |
| 9 | scrypt | Strong; the recommended choice where supported |
Configuring good habits on a device
Example commands and output on this page were written from Cisco IOS documentation and generally described behaviour. They were not captured from a live device, so prompts and details can differ on your platform and version.
security passwords min-length 12
enable algorithm-type scrypt secret ExamplePassphrase-2026
username admin algorithm-type scrypt secret AnotherExamplePassphrase
login block-for 120 attempts 3 within 60
line vty 0 4
exec-timeout 5 0
login local
transport input sshMinimum length, a strong stored password, a login delay after repeated failures, an idle timeout and SSH only. The passwords shown are examples; never use them.
service password-encryptionis worth turning on to stop casual reading of line passwords, but it is not security: type 7 is reversible.- Prefer
secretoverpasswordeverywhere the command offers a choice. - Better still, send logins to a central AAA server and add MFA.
Test yourself
Which IOS command stores the enable password as a hash rather than reversible text?
Which Cisco password type is only reversible scrambling and should not be trusted?
Which policy choice does current guidance (such as NIST 800-63B) recommend over forced 90-day changes?