Skip to content

Instantly share code, notes, and snippets.

@onkursen
Created March 27, 2014 21:19
Show Gist options
  • Save onkursen/9819141 to your computer and use it in GitHub Desktop.
Save onkursen/9819141 to your computer and use it in GitHub Desktop.
SHA-1 + Base64 encoding
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