Created
June 25, 2015 01:19
-
-
Save mrtc0/afd710e70d5038e42f0a to your computer and use it in GitHub Desktop.
Lengthが8のmd5ハッシュ値を生成し, 且つ, 0e[E]で始まるもの
This file contains hidden or 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
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