Created
June 22, 2016 21:39
-
-
Save stepchowfun/29e33234d7814a52bc24a4bfce12e8f0 to your computer and use it in GitHub Desktop.
See https://github.com/boyers/hashpass for details.
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
#!/usr/bin/python -O | |
import base64, getpass, hashlib | |
domain = raw_input('Domain: ').strip().lower() | |
key = getpass.getpass('Key: ') | |
bits = domain + '/' + key | |
for i in range(2 ** 16): | |
bits = hashlib.sha256(bits).digest() | |
password = base64.b64encode(bits)[:16] | |
print('Password: ' + password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment