Skip to content

Commit 5ce4d4d

Browse files
committed
1 parent 906cb6d commit 5ce4d4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utils/hash.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ def _encode64(input_, count):
327327

328328
return output
329329

330+
password = password.encode(UNICODE_ENCODING)
331+
330332
cipher = md5(salt)
331-
cipher.update(password.encode(UNICODE_ENCODING))
333+
cipher.update(password)
332334
hash_ = cipher.digest()
333335

334336
for i in xrange(count):

0 commit comments

Comments
 (0)