There are three different types of Cisco IOS passwords.
1) Cisco IOS type 0 passwords There is a command in Cisco IOS that can be issued to encrypt all passwords in the configuration file. If this command is not entered into the configuration file then all passwords (except for the enable secret password) will appear as plaintext as shown below:
username admin privilege 15 password 0 cisco
From the above lines in the Cisco IOS configuration file we can see that in this example the user admin has a password of cisco. The above passwords are noted as type 0 (zero) as shown by the zero that precedes the actual password. Type 0 passwords use no encryption.
2) Cisco IOS type 7 passwords
The command that is issued to encrypt user passwords is "service password-encryption" and this command should be entered from the Cisco router configuration mode prompt. If the "service password-encryption" command is issued then all type 0 (zero) passwords are become encrypted
username admin privilege 15 password 7 0822455D0A16
We can now observe that the above passwords are encrypted and that the password type has changed. These encrypted passwords are noted as type 7 passwords.
3) Cisco IOS type 5 passwords
The other type of Cisco password is type 5. This password type is encrypted using an MD5 hashing algorithm and is used by the Cisco IOS to encrypt the enable secret password as shown below (and in the attached configuration files):
enable secret 5 $1$2ZTf$9UBtjkoYo6vW9FwXpnbuA.
The type 5 password encryption uses a stronger method of encryption then that of the type 7 passwords.
1) Cisco IOS type 0 passwords There is a command in Cisco IOS that can be issued to encrypt all passwords in the configuration file. If this command is not entered into the configuration file then all passwords (except for the enable secret password) will appear as plaintext as shown below:
username admin privilege 15 password 0 cisco
From the above lines in the Cisco IOS configuration file we can see that in this example the user admin has a password of cisco. The above passwords are noted as type 0 (zero) as shown by the zero that precedes the actual password. Type 0 passwords use no encryption.
2) Cisco IOS type 7 passwords
The command that is issued to encrypt user passwords is "service password-encryption" and this command should be entered from the Cisco router configuration mode prompt. If the "service password-encryption" command is issued then all type 0 (zero) passwords are become encrypted
username admin privilege 15 password 7 0822455D0A16
We can now observe that the above passwords are encrypted and that the password type has changed. These encrypted passwords are noted as type 7 passwords.
3) Cisco IOS type 5 passwords
The other type of Cisco password is type 5. This password type is encrypted using an MD5 hashing algorithm and is used by the Cisco IOS to encrypt the enable secret password as shown below (and in the attached configuration files):
enable secret 5 $1$2ZTf$9UBtjkoYo6vW9FwXpnbuA.
The type 5 password encryption uses a stronger method of encryption then that of the type 7 passwords.
Comments
Post a Comment