DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
21
3-8
service password encryption
This command is used to enable the encryption of the password before stored in the configuration file.
The no command will disable the encryption.
service password-encryption [7 | 15]
no service password-encryption
Parameters
7
Specifies the algorithm of password encryption as SHA-1.
15
Specifies the algorithm of password encryption as MD5.
Default
By default, this option is disabled.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
The user account configuration information is stored in the running configuration file and can be applied to the
system later. If the service password-encryption command is enabled, the password will be stored in the
encrypted form.
When the service password encryption option is disabled and the password is specified in the plain text form,
the password will be in plain text form. However, if the password is specified in the encrypted form or if the
password has been converted to the encrypted form by the last enable password encryption option, the
password will still be in the encrypted form. It cannot be reverted back to plain text.
If this command is enabled and no option is specifed, using SHA-1 as the algorithm.
Example
This example shows how to enable the encryption of the password before stored in the configuration file.
Switch# configure terminal
Switch(config)# service password encryption 7
Switch(config)#