Pathfinder / user_utils.py
celise88's picture
add database to store user text embeddings
20835e9
raw
history blame contribute delete
No virus
310 Bytes
from passlib.context import CryptContext
pwd_cxt = CryptContext(schemes=['bcrypt'], deprecated="auto")
class Hash():
def bcrypt(password: str):
return pwd_cxt.hash(password)
def verify(plain_password: str, hashed_password: str):
return pwd_cxt.verify(plain_password, hashed_password)