Created
March 27, 2014 21:19
-
-
Save onkursen/9819141 to your computer and use it in GitHub Desktop.
SHA-1 + Base64 encoding
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
from hashlib import sha1 | |
from base64 import b64encode | |
password = raw_input("Enter password: ") | |
encoded = b64encode(sha1(password).digest()) | |
print "Encoded password is:" | |
print encoded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment