Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94579aa

Browse files
committed
Minor patch (salt should be 32 bytes in length)
1 parent 0f4d202 commit 94579aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/hash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ def joomla_passwd(password, salt, **kwargs):
382382
"""
383383
Reference: https://stackoverflow.com/a/10428239
384384
385-
>>> joomla_passwd(password='testpass', salt='WZGO7gQEl1UHHKeT7mN9n1VNtHj7xhC')
386-
'd5875f832ce9d83c21a14075019d3d24:WZGO7gQEl1UHHKeT7mN9n1VNtHj7xhC'
385+
>>> joomla_passwd(password='testpass', salt='6GGlnaquVXI80b3HRmSyE3K1wEFFaBIf')
386+
'e3d5794da74e917637332e0d21b76328:6GGlnaquVXI80b3HRmSyE3K1wEFFaBIf'
387387
"""
388388

389389
return "%s:%s" % (md5("%s%s" % (password, salt)).hexdigest(), salt)

0 commit comments

Comments
 (0)