summaryrefslogtreecommitdiff
path: root/filter_plugins/crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'filter_plugins/crypto.py')
-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))