loimaroc / app /services /auth_utils.py
aymanemalih's picture
Upload 25 files
91ca409 verified
from app import bcrypt
def hash_password(password):
return bcrypt.generate_password_hash(password).decode('utf-8')
def check_password(hashed, password):
return bcrypt.check_password_hash(hashed, password)