Skip to content

Instantly share code, notes, and snippets.

@mrtc0
Created June 25, 2015 01:19
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 mrtc0/afd710e70d5038e42f0a to your computer and use it in GitHub Desktop.
Save mrtc0/afd710e70d5038e42f0a to your computer and use it in GitHub Desktop.
Lengthが8のmd5ハッシュ値を生成し, 且つ, 0e[E]で始まるもの
import string, hashlib, re, itertools
for word in itertools.imap(''.join, itertools.product(string.uppercase + string.lowercase + string.digits, repeat=8)):
if re.match(r'0+[eE]+\d+$', hashlib.sha1(word).hexdigest()):
print word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment