Skip to content

Instantly share code, notes, and snippets.

@roblayton roblayton/hashgen.py
Created Jun 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.