service password-encryption

Configures the password encryption service to encrypt the passwords using different encryption methods.
Syntax
service password-encryption { sha1 | sha256 }
no service password-encryption { sha1 | sha256 }
Command Default

The user account password is encrypted using the MD5 encryption type.

Parameters
sha1
Encrypts system passwords using the SHA 1 encryption type.
sha256
Encrypts system passwords using the SHA 256 encryption type.
Modes

Global configuration mode

Usage Guidelines

The no form of the command reverts the password encryption service type to MD5.

Examples

The following example specifies the user account password to be encrypted using SHA 1.

device(config)# service password-encryption sha1 
Warning: Moving to higher password-encryption type, Do you want to continue(y/n)? (enter 'y' or 'n'): y

The following example specifies the user account password to be encrypted using SHA 256.

device(config)# service password-encryption sha256 
Warning: Moving to higher password-encryption type, Do you want to continue(y/n)? (enter 'y' or 'n'): y

The following example reverts the password encryption service type to MD5.

device(config)# no service password-encryption sha1 
Warning: Moving to lower password-encryption type, Do you want to continue(y/n)? (enter 'y' or 'n'): y
History
Release version Command history
08.0.40 This command was introduced.