feat: update password hashing algorithm to pbkdf2_sha256 for improved security
Test / test (push) Successful in 14s
Details
Test / test (push) Successful in 14s
Details
This commit is contained in:
parent
00addb971f
commit
994b400221
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue