03-27-2009 06:29 AM - edited 03-04-2019 04:07 AM
I wish to set up our Routers with username ... secret 5 ... (encrypted-secret). Can you recommend any tools for generating an MD5 encrypted secret for cisco ios. Thanks in advance.
03-27-2009 06:34 AM
I use HashCalc. Works great and it's free.
http://www.slavasoft.com/hashcalc/index.htm
Hope that helps.
03-27-2009 06:40 AM
You do not need to use any additional tools. Simply add user:
(config)#username test secret test
this would look like this in configuration file:
username test secret 5 $1$6xmn$kfSZZP.K3jcKDFa7QIji3.
03-27-2009 06:44 AM
There are situations where the hashed password needs to be entered instead of the clear text.
03-27-2009 10:13 AM
I downloaded the software and typed a text "test" and clicked calculate and got the MD5 string "098f6bcd4621d373cade4e832627b4f6" but when i enter this under username test secret 5 098f6bcd4621d373cade4e832627b4f6 i get the error message:
ERROR: The secret you entered is not a valid encrypted secret. To enter an UNENCRYPTED secret, do not specify type 5 encryption. When you properly enter an UNENCRYPTED secret, it will be encrypted. Is there something i'm not doing well? Please clarify. Thanks.
03-27-2009 11:26 AM
This worked for me.
username test password 7 098f6bcd4621d373cade4e832627b4f6
03-27-2009 11:35 AM
password 7 - is not md5 password!
03-29-2009 03:44 AM
Hello,
You cannot simply try an MD5 hash of some password. Where did you get the idea that the secret 5 indicates an MD5 hash would follow? It isn't an MD5 hash.
A simple test to prove this. I have added an enable secret password of "cisco" to my device. The computed MD5 hash of "cisco" is "dfeaf10390e560aea745ccba53e044ed".
The router computed... "$1$voTM$qP2CfLDlxdeD1ofoVoYmp."
Now, notice the encrypted password on the router is 30 characters long. However, MD5 hashes are always 32 characters long.
Cisco IOS does not employ a simple MD5 hash to protect the enable secret password, especially with the rise of MD5 hash dictionaries.
03-29-2009 11:12 AM
Could you assist with the right thing to do? i need to use the MD5 form of secret. What input should i have. The syntax says an encrypted secret should follow. Thanks in advance.
03-30-2009 12:22 AM
Yea, your missing the point. It is not the MD5 form of the secret, but rather some encrypted form of the secret.
Do you know what the secret password is in plain text? If so, drop it on a router using the "enable secret
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide