Created
December 2, 2013 14:39
-
-
Save zielmicha/7750406 to your computer and use it in GitHub Desktop.
Generate password for website from master one
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 getpass, hashlib | |
domain = raw_input('domain: ') | |
assert not domain.startswith('www.') | |
pas = getpass.getpass() | |
pas1 = getpass.getpass() | |
assert pas == pas1 | |
print hashlib.sha1(domain + pas).hexdigest()[:16] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment