Created
September 5, 2019 09:37
-
-
Save AntiKnot/3b09476076562f35b6139ea3d608a21d to your computer and use it in GitHub Desktop.
demo with bcrypt, simple deal crypt password.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment