summaryrefslogtreecommitdiff
path: root/filter_plugins
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-10-28 20:59:26 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-10-28 20:59:26 +0200
commitd78900d887cd4c6b7a00da6bf39e1e2542262e48 (patch)
tree57aebf85489db160b8b6fcea3b427d3f97b7b59c /filter_plugins
parentconfigure auth for grafana (diff)
sha256/sha512 password-hash salts must be <= 16 characters long -> 12bytes base64 encoded
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/crypto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/crypto.py b/filter_plugins/crypto.py
index 17a0f6c4..b3dc32c4 100644
--- a/filter_plugins/crypto.py
+++ b/filter_plugins/crypto.py
@@ -25,7 +25,7 @@ def apr_md5_crypt_salt(seed):
def sha2_crypt_salt(seed):
''' generate salt for sha256/sha512_crypt algorithms based on seed-value '''
try:
- return _hash64_salt(seed, 16)
+ return _hash64_salt(seed, 12)
except Exception as e:
raise errors.AnsibleFilterError("sha2_crypt_salt(): %s" % str(e))