Created
June 15, 2016 00:17
-
-
Save lowellbander/5b8d3de8a2205f8c203ec9f1bb0aab36 to your computer and use it in GitHub Desktop.
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
| def makeHash(password): | |
| return sha256(password.encode('utf-8')).hexdigest() | |
| # the `password` argument must be encoded before being hashed to avoid the following error: | |
| # TypeError: Unicode-objects must be encoded before hashing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment