Skip to content

Instantly share code, notes, and snippets.

@veryhappythings
Created May 7, 2009 16:44
Show Gist options
  • Save veryhappythings/108201 to your computer and use it in GitHub Desktop.
Save veryhappythings/108201 to your computer and use it in GitHub Desktop.
A brute force way to find the Kember Identity.
# A brute force way to find the Kember Identity.
# By Mac, @veryhappythings, on a boring afternoon.
# If you want, you can run it with the last attempt as an argument and it'll start there.
import hashlib
import sys
def iterative():
last_attempt = len(sys.argv) > 1 and int(sys.argv[1]) or 0
try:
while True:
attempt, last_attempt = '%032x' % last_attempt, last_attempt + 1
if hashlib.md5(attempt).hexdigest() == attempt:
return attempt
finally:
print
print attempt
print last_attempt
print iterative()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment