私は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)。
パスワードを入力するよう求められます。そして、キーを返します。
にかかわらず、パスワードの入力Iの、作成されたすべてのキーが、これはどういう意味$6$rounds=...
で始まりますか?これは鍵の一部ですか?
キーを使用するときにラウンドを文字列に含める必要がありますか? –
@tim_zyx passlibの[sha256_cryptマンページ](http://passlib.readthedocs.io/en/stable/lib/passlib.hash.sha256_crypt.html#format-algorithm)の「フォーマット」セクションでは、ハッシュの完全な形式について説明しています文字列。 sha512_cryptは$ 6 $と長い形式のダイジェストと同じ形式です。 –