Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c22555

Browse files
committed
Patch for an Issue #1020
1 parent 25196b4 commit 9c22555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def _encode64(input_, count):
329329
return output
330330

331331
cipher = md5(salt)
332-
cipher.update(password)
332+
cipher.update(password.encode(UNICODE_ENCODING))
333333
hash_ = cipher.digest()
334334

335335
for i in xrange(count):

0 commit comments

Comments
 (0)