1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Fix database

This commit is contained in:
MoonTestUse1
2025-01-07 06:10:16 +06:00
parent d0142ee7ac
commit 2bbadbd492
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1 @@
"""Utils package"""

View File

@@ -0,0 +1,8 @@
"""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)