How to encrypt all Cisco passwords

Setting the “service password-encryption” will encrypt all passwords in the show running-config Ex. Enable and Line clear text passwords. Passwords are encrypted with the MD5 hashing algorithm.

Before applying: service password-encryption

Switch#show run | section password
no service password-encryption
username admin password 0 cisco

Enable: service password-encryption

Switch(config)#service password-encryption ?
password-encryption    Encrypt system passwords
Switch(config)#service password-encryption


Switch#show run | section password
service password-encryption
username admin password 7 02050D480809


Please enter your comment!
Please enter your name here