Избранное

Избранные и закрытые публикации будут доступны после Регистрации

Type 7 is a weak, reversible obfuscation – not a hash. You can decrypt Type 7 with a simple Python script. Type 5 is a true cryptographic hash. Never confuse the two.


No, you didn’t. You saw a site that had a precomputed lookup table (rainbow table) or had previously cracked that exact hash. If your password is cisco or 12345, many hash databases will return it. But if your password is strong and random, the site will fail.

If you have worked with Cisco IOS, IOS-XE, or NX-OS devices, you’ve likely seen the following line in a configuration file:

enable secret 5 $1$iUJX$R9t6.vw9AF2qgS48JtQpN/

Or perhaps a line for a local user:

username admin privilege 15 secret 5 $1$xyz123$abcDEFghijklmNOPqrstUV

The 5 in secret 5 indicates that the password is hashed using a specific algorithm. A common misunderstanding among junior network engineers is that this hash can be "decrypted" back to the original plaintext password. This leads to thousands of Google searches every month for terms like "cisco secret 5 password decrypt", "cisco type 5 decrypter", or "reverse Cisco MD5 hash."

This article will explain, once and for all, what Type 5 secrets really are, why you cannot decrypt them (in the traditional sense), what tools exist to crack them, and the legitimate methods for password recovery on Cisco devices.


If you need to prove the password (e.g., migration or auditing), you can extract the hash and run an offline dictionary attack:

Command to extract hash from config:

show running-config | include secret

Then copy the $1$... string into a text file and run:

hashcat -m 500 -a 0 hash.txt rockyou.txt

Some popular tools for attempting to crack or recover Cisco Secret 5 passwords include:

In some cases, if you have physical access to the device, you can attempt to recover the password by manipulating the boot process and accessing the device's ROMMON (Read-Only Memory, Monitor) mode. From there, you might be able to bypass or reset the password.