【发布时间】:2016-10-07 04:20:15
【问题描述】:
我正在使用 Python 的 Passlib 的命令生成 SHA-512 编码的密码密钥。
python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"
这是根据 Ansible 文档:http://docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module)。
它提示我输入密码。然后它返回密钥。
无论我输入什么密码,创建的所有密钥都以$6$rounds=...开头
这是什么意思?这是钥匙的一部分吗?
【问题讨论】:
标签: python encryption passlib