Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

Password Hashing Algorithms · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

Cisco credential types describe how a password or key is stored. Type 0 is plaintext, type 7 is reversible obfuscation, type 5 is legacy MD5 hashing, and types 8 and 9 use stronger password hashing. Type 6 is reversible AES encryption for credentials that must be recovered by the device; it is not a password hash.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Use placeholders for new secrets. Never paste an existing production hash into shared notes.
  • Prefer the strongest supported secret algorithm unless the exam explicitly requires another type.
Generate type 9 (scrypt) local secret Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type scrypt secret [PASSWORD]
enable algorithm-type scrypt secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate type 8 (PBKDF2-SHA256) secret Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type sha256 secret [PASSWORD]
enable algorithm-type sha256 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate legacy type 5 (MD5) secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Legacy exam compatibility only; modern platforms may reject or convert type 5.
enable
configure terminal
username [USERNAME] algorithm-type md5 secret [PASSWORD]
enable algorithm-type md5 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Explicit type 0 line password Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Plaintext input and storage unless password encryption is enabled.
enable
configure terminal
line console 0
 password 0 [PASSWORD]
 login
 exit
end
Command parameters
[PASSWORD]
New local or line password; never include a real password in shared material.
Legacy service password encryption Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Obfuscates applicable plaintext line passwords as type 7. It does not create a strong hash.
enable
configure terminal
service password-encryption
end
Import an already encoded type 9 secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • The value must already be a valid encoded type 9 secret, not a plaintext password.
enable
configure terminal
username [USERNAME] secret 9 [ENCODED-TYPE9-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[ENCODED-TYPE9-SECRET]
Existing valid type 9 encoded hash, not plaintext.

Show / Verify

Primary verification Section link
show running-config | include ^username
Example output
username exam-user secret 9 [REDACTED]

Check the numeric storage type, not the contents of the secret. Never share unredacted output.

Detailed verification Section link
show running-config | include ^enable secret
Example output
enable secret 8 [REDACTED]

Check the enable secret storage type.

Detailed verification Section link
show running-config | include ^service password-encryption
Example output
service password-encryption

Confirms legacy password obfuscation setting only.

Common mistakes

  • Entering plaintext after secret 8 or secret 9 when a pre-encoded value is required.
  • Confusing type 7 with secure hashing.
  • Assuming service password-encryption upgrades secret hashes.

Quick reference and default values

Cisco credential types
TypeStorage
0Plaintext
5Legacy MD5 hash
6Reversible AES encryption, where supported
7Reversible obfuscation
8PBKDF2-SHA256 hash
9scrypt hash
Remove configuration — separate, potentially disruptive actions

Remove a local username

Verify another working administrator login before removing the account.

enable
configure terminal
no username [USERNAME]
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?