diff --git a/lib/utils/hash.py b/lib/utils/hash.py index e0a0a0c50..c4a3739c9 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -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):