1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/backend/app/utils/security.py
MoonTestUse1 2bbadbd492 Fix database
2025-01-07 06:10:16 +06:00

8 lines
245 B
Python

"""Security utilities"""
from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def get_password_hash(password: str) -> str:
"""Get password hash"""
return pwd_context.hash(password)