我的代码如下:
md = input("MD5 Hash: ")
if len(md) != 32:
print("Don't MD5 Hash.")
else:
liste = input("Wordlist: ")
ac = open(liste).readlines()
for new in ac:
new = new.split()
hs = hashlib.md5(new).hexdigest()
if hs == md:
print("MD5 HASH CRACKED : ",new)
else:
print("Sorry :( Don't Cracked.")
但是,当我运行它时,我会得到这个错误:
hs = hashlib.md5(new).hexdigest()
TypeError: object supporting the buffer API required
我该如何解决这个问题?“b”字节?