Spaces:
Runtime error
Runtime error
File size: 339 Bytes
71a3948 93cf1dc 71a3948 93cf1dc 71a3948 93cf1dc |
1 2 3 4 5 6 7 8 9 10 11 |
"""
Utility functions for CRUD operations.
"""
from src.config import settings
# --- Password Hashing ---
def verify_password(plain_password: str, hashed_password: str) -> bool:
return settings.PWD_CONTEXT.verify(plain_password, hashed_password)
def hash_password(password: str) -> str:
return settings.PWD_CONTEXT.hash(password) |