Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Secure storage

Direct answer

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.

When to use this

Use it when auditing configurations and backups, or choosing how a password manager or vault stores secrets.

First 30 seconds

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.

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Scope / prerequisiteUse it when auditing configurations and backups, or choosing how a password manager or vault stores secrets.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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)

ElementRequirement
SaltAt least 32 bits, unique per password
HashApproved password hashing scheme, high cost factor raised over time
MetadataRecord the scheme and cost factor
Additional keyed hashSecret stored separately (recommended)
Rate limitingAt most 100 consecutive failed attempts before disabling the authenticator

Password types on Cisco IOS XE

TypeMethodUse
0Clear textNever in saved configurations
7Reversible obfuscation (service password-encryption)Not secure
5MD5-based hashLegacy
8PBKDF2-SHA-256Acceptable
9scryptRecommended
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

PlaceProtection
Configuration backupsEncrypt at rest; restrict access
Automation inventoriesVaults or secret managers, not plain files
DocumentationNever; reference the vault entry

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Confirmation

Confirm action

Continue?