Skip to content

Instantly share code, notes, and snippets.

@AntiKnot
Created September 5, 2019 09:37
Show Gist options
  • Select an option

  • Save AntiKnot/3b09476076562f35b6139ea3d608a21d to your computer and use it in GitHub Desktop.

Select an option

Save AntiKnot/3b09476076562f35b6139ea3d608a21d to your computer and use it in GitHub Desktop.
demo with bcrypt, simple deal crypt password.
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