Advertisement
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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement