password-encryption

Enables password encryption and configures the passphrase used to encrypt passwords. When enabled, passwords configured within the system are not displayed as clear text.

Supported on the following devices:

Syntax

password-encryption secret 2 <LINE>

Parameters

password-encryption secret 2 <LINE>
secret 2 <LINE> Encrypts passwords with a secret phrase
  • 2 – Specifies the encryption type as either SHA256-AES256
    • <LINE> – Specify the encryption passphrase.

Examples

nx9500-6C8809(config)#password-encryption secret 2 test@123

To confirm if password encryption is enabled, execute the following command:

nx9500-6C8809(config)#show password-encryption status
Password encryption is enabled
nx9500-6C8809(config)#

The following example shows the privilege-mode-password as encrypted text. Note, the digit ‘1‘ preceding the password implies that displayed text is the encrypted password and not clear text.

nx9500-6C8809(config-management-policy-test)#show context include-factory | 
include privilege-mode-password
 privilege-mode-password 1 bc28e4d82bb11fa75a3c56346441d48f50f19c47184e2575a59a6a5d18e63925
nx9500-6C8809(config-management-policy-test)#

Related Commands

no Disables password encryption