From 94579aa80d619374404dc3e595e8ad787c9f6e57 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 13 Oct 2017 15:53:45 +0200 Subject: [PATCH] Minor patch (salt should be 32 bytes in length) --- lib/utils/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 67239fa8b..8521a0957 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -382,8 +382,8 @@ def joomla_passwd(password, salt, **kwargs): """ Reference: https://stackoverflow.com/a/10428239 - >>> joomla_passwd(password='testpass', salt='WZGO7gQEl1UHHKeT7mN9n1VNtHj7xhC') - 'd5875f832ce9d83c21a14075019d3d24:WZGO7gQEl1UHHKeT7mN9n1VNtHj7xhC' + >>> joomla_passwd(password='testpass', salt='6GGlnaquVXI80b3HRmSyE3K1wEFFaBIf') + 'e3d5794da74e917637332e0d21b76328:6GGlnaquVXI80b3HRmSyE3K1wEFFaBIf' """ return "%s:%s" % (md5("%s%s" % (password, salt)).hexdigest(), salt)