Use it when auditing configurations and backups, or choosing how a password manager or vault stores secrets.
Secure storage
Secure storage means passwords are kept as salted, slow hashes — never in clear text or reversible encryption. On Cisco IOS type 9 (scrypt) and type 8 (PBKDF2-SHA256) are strong; type 5 (MD5) is weak; type 7 is reversible.
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
- Reversible encryption (Cisco type 7) for stored passwords.
- Unsalted fast hashes such as MD5 or SHA-1.
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.
service password-encryption only converts clear text to type 7, which anyone can decode — it is not protection. Use algorithm-type scrypt secret. Configuration backups contain hashes and keys: store them encrypted with access control.
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
Storage requirements
- Network devices: type 8 or 9 secrets, never type 7 or plain text.
- Applications: Argon2id, scrypt or bcrypt with unique salts.
- Shared admin credentials: a password vault (PAM) with access logging and check-out.
- Never in scripts, wikis or tickets; use secret managers for automation.
ReferenceWhy it matters1 section · depth on demand
How it works
Passwords should be stored as salted, slow hashes so a stolen database cannot be reversed quickly. Use a modern password hashing function (Argon2id, scrypt, bcrypt, PBKDF2 with high iterations). On Cisco devices, use enable algorithm-type scrypt secret (type 9) instead of type 7 or MD5 (type 5).
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Secure storage of passwords
Passwords must be stored so that a stolen database doesn't reveal them. NIST SP 800-63B requires storage resistant to offline attacks: salted with at least 32 bits, hashed with a suitable password hashing scheme (it recommends approved schemes and the highest practical cost factor), with the scheme and cost factor recorded for future migration, and ideally an extra keyed step using a secret kept separately, for example in a hardware module.
Storage requirements (SP 800-63B)
| Element | Requirement |
|---|---|
| Salt | At least 32 bits, unique per password |
| Hash | Approved password hashing scheme, high cost factor raised over time |
| Metadata | Record the scheme and cost factor |
| Additional keyed hash | Secret stored separately (recommended) |
| Rate limiting | At most 100 consecutive failed attempts before disabling the authenticator |
Password types on Cisco IOS XE
| Type | Method | Use |
|---|---|---|
| 0 | Clear text | Never in saved configurations |
| 7 | Reversible obfuscation (service password-encryption) | Not secure |
| 5 | MD5-based hash | Legacy |
| 8 | PBKDF2-SHA-256 | Acceptable |
| 9 | scrypt | Recommended |
R1(config)# enable algorithm-type scrypt secret <passphrase>
R1(config)# username netadmin privilege 15 algorithm-type scrypt secret <passphrase>
R1# show running-config | include secret
enable secret 9 $9$<salt>$<scrypt-hash>
username netadmin privilege 15 secret 9 $9$<salt>$<scrypt-hash>
R1(config)# password encryption aes
R1(config)# key config-key password-encrypt <master-key>
password encryption aes protects reversible secrets (such as RADIUS keys) with a master key instead of type 7.
Where else passwords are stored
| Place | Protection |
|---|---|
| Configuration backups | Encrypt at rest; restrict access |
| Automation inventories | Vaults or secret managers, not plain files |
| Documentation | Never; reference the vault entry |
Documented example, not captured output.
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 → Secure storage. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%