This commit is contained in:
Miroslav Stampar 2015-09-29 10:10:39 +02:00
parent 906cb6d3c2
commit 5ce4d4d2ec

View File

@ -327,8 +327,10 @@ def wordpress_passwd(password, salt, count, prefix, uppercase=False):
return output
password = password.encode(UNICODE_ENCODING)
cipher = md5(salt)
cipher.update(password.encode(UNICODE_ENCODING))
cipher.update(password)
hash_ = cipher.digest()
for i in xrange(count):