Testys's picture
FEAT: Code for crud completed
93cf1dc
raw
history blame
339 Bytes
"""
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)