Files
2024-02-15 00:17:51 +03:30

12 lines
288 B
Python

from passlib.context import CryptContext
context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def verify_password(plain_password, hashed_password):
return context.verify(plain_password, hashed_password)
def get_password_hash(password):
return context.hash(password)