Files
notifications-admin/app/main/encryption.py
2015-12-01 10:00:07 +00:00

10 lines
261 B
Python

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)