Fixing password verification for sha256.

This commit is contained in:
Antoine Nguyen
2013-11-26 16:07:04 +01:00
parent c6cbdbf242
commit 484caa76e8
+1 -1
View File
@@ -55,7 +55,7 @@ class PasswordHasher(object):
:return: True if passwords match, False otherwise
"""
return constant_time_compare(
self._encrypt(clearvalue, hashed_value),
self._b64encode(self._encrypt(clearvalue, hashed_value)),
hashed_value
)