cloudairambo / utils /auth_utils.py
rihancloud's picture
Deploy clean FastAPI backend without node_modules
99fdb5f
Raw History Blame Contribute Delete
245 Bytes
# 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)