a guest Sep 16th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import bcrypt
- def get_hashed_password(plain_text_password):
- return bcrypt.hashpw(plain_text_password, bcrypt.gensalt())
- def check_password(plain_text_password, hashed_password):
- return bcrypt.checkpw(plain_text_password, hashed_password)
RAW Paste Data