更改密码加密算法

编辑/etc/sysconfig/authconfig 更改密码的加密算法
如改成sha512或sha256

img

[root@desktop0 ~]# openssl 
               ID  | Method
               ─────────────────────────────────────────────────────────
               1   | MD5
               2   | Blowfish (not in mainline glibc; added in some
                   | Linux distributions)
               5   | SHA-256 (since glibc 2.7)
               6   | SHA-512 (since glibc 2.7)
 [root@desktop0 ~]# grep student /etc/shadow
 student:$6$8oIjLCsc$/n1iQXYh1E6.uOEuJKgioqAtmqm2TQmkJGF2RwyteIr1tIfrPdiRYgWe6Sjen5/eMij2uHM/a1tue/QRlo3X80:16442:0:99999:7:::
 $6$8oIjLCsc$/n1iQXYh1E6.uOEuJKgioqAtmqm2TQmkJGF2RwyteIr1tIfrPdiRYgWe6Sjen5/eMij2uHM/a1tue/QRlo3X80
 $1$KPBV6jO6$CK99MGUDFqDnIAw18glZG1
[root@desktop0 ~]# yum install authconfig-gtk 
[root@desktop0 ~]# passwd  root   --->secret
[root@desktop0 ~]# openssl  passwd -table -1 -salt "Ii1hKiBA" -stdin < /usr/share/dict/words  |grep "wWw0r0Vjs8Q/.O2O1wNst/"