Spaces:
Sleeping
Sleeping
File size: 407 Bytes
42cffde d3530f3 42cffde d3530f3 42cffde |
1 2 3 4 5 6 7 8 9 10 11 12 |
# import bcrypt
# class PasswordUtils:
# @staticmethod
# def hash_password(password: str) -> str:
# hashed = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
# return hashed.decode('utf-8')
# @staticmethod
# def check_password(password: str, hashed_password: str) -> bool:
# return bcrypt.checkpw(password.encode('utf-8'), hashed_password.encode('utf-8'))
|