Cisco switch secret 5 password change

Hello EE,
I have a cisco switch I know the password for, but obviously secret 5 in encrypted.  I would like to change this and used a MD5 generator to create a hash for my new password, but just want to make sure I can access it again after the fact put in my existing password that the hash doesn't match what is in my show run.  Is this accurate?  Or how do I make sure I am creating a hash from a password that after entered is accurate
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel SheppardSenior Network Analyst - Core & PerimeterCommented:
You don't have to do the hash, the switch will has your password for you.

Just type "enable secret <password>"
operationsITAuthor Commented:
as that or do I need to specify enable secret 5 and <password>?
Also for a user <username> privilege 15 secret 5 <password>?  This doesn't have to be in hash?
# enable secret <password>
# enable secret 5 <password>

Difference is that in the first case you type unencrypted password and router will create password hash for you, in the second case secret 5 marks to router that already hashed password is entered. But, end result is the same in both cases.

So, if there's no one watching over you shoulder while you type go with # enable secret. :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
operationsITAuthor Commented:
Excellent was unclear the difference.  Thanks for clarifying.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.