From 8762d9e7e6af3c388a627f393b014e14947c0b9b Mon Sep 17 00:00:00 2001 From: Alicia Cozine <879121+acozine@users.noreply.github.com> Date: Thu, 4 Jan 2024 08:42:13 -0600 Subject: [PATCH] Adds details to the password_hash documentation (#82419) fix for issue 82415 - Co-authored-by: Alicia Cozine Co-authored-by: Felix Fontein --- lib/ansible/plugins/filter/password_hash.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/filter/password_hash.yml b/lib/ansible/plugins/filter/password_hash.yml index ceab6244b0d..a9516b7fc01 100644 --- a/lib/ansible/plugins/filter/password_hash.yml +++ b/lib/ansible/plugins/filter/password_hash.yml @@ -7,6 +7,7 @@ DOCUMENTATION: positional: _input notes: - Algorithms available might be restricted by the system. + - Algorithms may restrict salt length or content. For example, Blowfish/bcrypt requires a 22-character salt. options: _input: description: Secret to hash. @@ -18,7 +19,7 @@ DOCUMENTATION: default: sha512 choices: [ md5, blowfish, sha256, sha512 ] salt: - description: Secret string that is used for the hashing, if none is provided a random one can be generated. + description: Secret string used for the hashing. If none is provided a random one can be generated. Use only numbers and letters (characters matching V([./0-9A-Za-z]+)). type: string rounds: description: Number of encryption rounds, default varies by algorithm used.