Skip to content

Instantly share code, notes, and snippets.

@Honzaik
Created May 4, 2018 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Honzaik/f70f166a1146f0e39761cd32402bff18 to your computer and use it in GitHub Desktop.
Save Honzaik/f70f166a1146f0e39761cd32402bff18 to your computer and use it in GitHub Desktop.
brute
import hashlib
prefix = "JanOupicky"
counter = 0
seznam = dict()
h = hashlib.sha256((prefix + str(counter)).encode("utf-8")).hexdigest()
while(h[:10] not in seznam):
seznam[h[:10]] = prefix + str(counter)
counter += 1
h = hashlib.sha256((prefix + str(counter)).encode("utf-8")).hexdigest()
print(h[:10])
print(seznam[h[:10]])
print(prefix+str(counter))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment