Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import bcrypt
  2.  
  3.  
  4. def get_hashed_password(plain_text_password):
  5. return bcrypt.hashpw(plain_text_password, bcrypt.gensalt())
  6.  
  7.  
  8. def check_password(plain_text_password, hashed_password):
  9. return bcrypt.checkpw(plain_text_password, hashed_password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement