| 场景 | 等保合规、配置外发前脱敏 |
|---|---|
| 适用 | 全部设备 |
| 命令族 | irreversible-cipher / service password-encryption / password hash |
华为 VRP
华为 VRP
[Huawei-aaa] local-user netadmin password irreversible-cipher Admin@2026
! 存储为不可逆摘要,配置文件中无法还原明文思科 IOS
思科 IOS
SW-CORE-01(config)# service password-encryption
SW-CORE-01# show running-config | include password
enable secret 5 $1$mERr$... ! 强散列
username x password 7 030752180500 ! type 7 弱加密,可逆H3C Comware
H3C Comware
[H3C-luser-manage-netadmin] password hash $h$6$QyrbzH...
! 或 password cipher(可逆)——文件外发审阅时必须脱敏华为 irreversible-cipher 与 H3C hash 为不可逆散列(推荐);思科 service password-encryption 只把明文转成 type 7 弱加密,防肩窥不防破解。