第一步:安装软件包

image.png
第二步:在安装此软件包

image.png
第三步:执行此命令

image.png
输入密码信息就可以查看此密码的密文信息
生成密码密文信息
#利用python模块功能
yum install python-pip
pip install passlib
优化pip源
~/.pip/pip.conf
中添加或修改:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
python -c "from passlib.hash import sha512_crypt; import getpass; print(sha512_crypt.using(rounds=5000).hash(getpass.getpass()))"