diff --git a/solvable/src/webservice/crypto.py b/solvable/src/webservice/crypto.py index 051ff22..ff050a4 100644 --- a/solvable/src/webservice/crypto.py +++ b/solvable/src/webservice/crypto.py @@ -10,8 +10,8 @@ class PasswordHasher: @staticmethod def verify(password, salted_hash): - salt = bytes.fromhex(salted_hash[64:]) - hashdigest = bytes.fromhex(salted_hash[:64]) + salt = bytes.fromhex(salted_hash)[32:] + hashdigest = bytes.fromhex(salted_hash)[:32] return PasswordHasher.scrypt(password, salt) == hashdigest @staticmethod