Skip to content

Instantly share code, notes, and snippets.

@roblayton
Created June 29, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblayton/b54a287b9558e7a18238 to your computer and use it in GitHub Desktop.
Save roblayton/b54a287b9558e7a18238 to your computer and use it in GitHub Desktop.
Generates a hashed password
# import the hash algorithm
from passlib.hash import sha256_crypt
# generate new salt, hash a password string
hash = sha256_crypt.encrypt("password")
print(hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment