1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-04-03 16:12:40 +00:00
2018-05-04 10:35:32 +02:00

12 lines
264 B
Python

from passlib.hash import pbkdf2_sha256
class PasswordHasher:
@staticmethod
def hash(password):
return pbkdf2_sha256.hash(password)
@staticmethod
def verify(password, hashdigest):
return pbkdf2_sha256.verify(password, hashdigest)