Files
notifications-admin/app/main/encryption.py

10 lines
261 B
Python
Raw Normal View History

from flask.ext.bcrypt import generate_password_hash, check_password_hash
def hashpw(password):
return generate_password_hash(password.encode('UTF-8'), 10)
def checkpw(password, hashed_password):
return check_password_hash(hashed_password, password)