From 5ce4d4d2ec1877a77ca7defe2249e8c95d64d032 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 29 Sep 2015 10:10:39 +0200 Subject: [PATCH] Fixes #1439 --- lib/utils/hash.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):