Spaces:
Runtime error
Runtime error
File size: 286 Bytes
d1c6748 | 1 2 3 4 5 6 7 8 | from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def hash(password:str):
return pwd_context.hash(password)
def verify(plain_password:str, hashed_password:str):
return pwd_context.verify(plain_password, hashed_password) |