mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
10 lines
261 B
Python
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)
|