From 9c225557d118a555900576c005a75e63c89521c6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 13 Dec 2014 14:08:37 +0100 Subject: [PATCH] Patch for an Issue #1020 --- lib/utils/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index a657f4fee..7f99b7cea 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -329,7 +329,7 @@ def wordpress_passwd(password, salt, count, prefix, uppercase=False): return output cipher = md5(salt) - cipher.update(password) + cipher.update(password.encode(UNICODE_ENCODING)) hash_ = cipher.digest() for i in xrange(count):