Cisco Type 7 and Juniper $9$ decoder

Runs in your browser

Paste a value or a whole configuration. Every password 7 and $9$ is shown in plain text: they are only scrambled, not encrypted. Nothing leaves your browser.

Waiting for input

Paste a value or a whole configuration

Every Cisco Type 7 and Juniper $9$ value is shown in plain text. Type 5, 8 and 9 hashes are listed, they can’t be reversed.

Examples

Start from an example

Each example fills in the tool above and decrypts it. All keys and passwords are demo values made for this page.

The formats

Type 7, $9$ and the hashes

Looks likeWhat it isReversible?
password 7 0822455D0A16Cisco Type 7: XOR with a fixed, published key (Vigenère). The two digits at the start choose where in the key to begin.Yes, by anyone
$9$…Juniper $9$: obfuscation with fixed tables and random padding, no key.Yes, by anyone
secret 5 $1$…Cisco Type 5: MD5-crypt hash.No, only guessing
secret 8 $8$…Cisco Type 8: PBKDF2-SHA256.No
secret 9 $9$…Cisco Type 9: scrypt. Note: also starts with $9$, but is a hash.No
$8$…Juniper $8$: AES-256-GCM with the device’s master password.Only with the master password
What to use instead

Type 7 is not protection

Cisco calls type 7 “encryption”, but the key has been public since the 1990s. It only keeps passwords from being read over your shoulder. Use secret instead of password: enable algorithm-type scrypt secret … (type 9) and username admin algorithm-type scrypt secret …. Where type 7 can’t be avoided (OSPF, BGP, TACACS+, RADIUS keys), keep configurations out of tickets and chats, or use the master key encryption (type 6, key config-key password-encrypt).

On the device

The same on IOS and Junos

IOS
key chain TEST
 key 1
  key-string 7 0822455D0A16
show key chain        ! shows the key in plain text
Junos
request system decrypt password "$9$…"   # Junos 22.3+
Python
from passlib.hash import cisco_type7
cisco_type7.decode("0822455D0A16")
Under the hood

Tested against the original tools

Every format on this page was checked against values made by the real tool, on 3 December 2026:

  • 16 values from Python’s passlib (cisco_type7) and network-secret (juniper9) plus published examples; what the tool creates, those libraries read.
  • Whole IOS and Junos configurations: every value is found, hashes are listed but not touched.
More formats

Other encrypted formats

Every format has its own page with the same tool. Paste anything into one of them: if it belongs elsewhere, the tool says so and takes it there.

FAQ

Questions about Cisco Type 7 & Juniper $9$

How do I decrypt a Cisco type 7 password?

Paste the value or the whole configuration above. Type 7 has no secret key, so this always works.

Can type 5, 8 or 9 be decrypted?

No. They are hashes: the device stores only a fingerprint of the password. You can check a guess, but there is nothing to decrypt.

Is Juniper $9$ secure?

No. Like type 7 it only hides the password from a quick glance. For real protection Junos has $8$ with a master password.

Is it safe to paste a configuration here?

Everything runs in your browser: nothing you paste is sent anywhere, not even to this site. The page’s Content-Security-Policy blocks connections to other sites; check the Network tab of your browser’s developer tools.

Searches the list of pages on this site. What you type stays in your browser.