Skip to content

Instantly share code, notes, and snippets.

@stepchowfun
Created June 22, 2016 21:39
Show Gist options
  • Save stepchowfun/29e33234d7814a52bc24a4bfce12e8f0 to your computer and use it in GitHub Desktop.
Save stepchowfun/29e33234d7814a52bc24a4bfce12e8f0 to your computer and use it in GitHub Desktop.
#!/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