Spaces:
Runtime error
Runtime error
File size: 245 Bytes
99fdb5f | 1 2 3 4 5 6 7 8 9 10 | # utils/auth_utils.py
from passlib.hash import bcrypt
def hash_password(password: str) -> str:
return bcrypt.hash(password)
def verify_password(password: str, password_hash: str) -> bool:
return bcrypt.verify(password, password_hash)
|