feat: update password hashing algorithm to pbkdf2_sha256 for improved security
Test / test (push) Successful in 14s Details

This commit is contained in:
k1nq 2025-11-28 14:33:51 +05:00
parent 00addb971f
commit 994b400221
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class PasswordHasher:
"""Wraps passlib context to hash and verify secrets.""" """Wraps passlib context to hash and verify secrets."""
def __init__(self) -> None: def __init__(self) -> None:
self._context = CryptContext(schemes=["bcrypt"], deprecated="auto") self._context = CryptContext(schemes=["pbkdf2_sha256"], deprecated="auto")
def hash(self, password: str) -> str: def hash(self, password: str) -> str:
return self._context.hash(password) return self._context.hash(password)