File size: 222 Bytes
91ca409
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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)