使用sha512算法加密linux密码
Posted 遥远的绿洲
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用sha512算法加密linux密码相关的知识,希望对你有一定的参考价值。
查看当前主机的加密算法:
[[email protected] ~]# authconfig --test |grep hashing
password hashing algorithm is sha512
设置使用sha512算法:
# authconfig --passalgo=SHA512 --update
最后,所有用户都需要重新设置密码才能生效。可以使用# chage -d 0 root 强制该用户下次登录修改密码。
以上是关于使用sha512算法加密linux密码的主要内容,如果未能解决你的问题,请参考以下文章
如何为一个密码实现sha 512,md5和salt加密[重复]