def crack(hashstr, wordlist):
for word in wordlist:
for hashtype in hashlib.algorithms:
func = getattr(hashlib, hashtype)
if func(word).hexdigest().lower() == hashstr.lower():
return word, hashtype
return None, None
评论列表
文章目录