Created
June 29, 2015 21:59
-
-
Save roblayton/b54a287b9558e7a18238 to your computer and use it in GitHub Desktop.
Generates a hashed password
This file contains 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 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