dev #11
|
|
@ -14,7 +14,7 @@ class PasswordHasher:
|
|||
"""Wraps passlib context to hash and verify secrets."""
|
||||
|
||||
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:
|
||||
return self._context.hash(password)
|
||||
|
|
|
|||
Loading…
Reference in New Issue