小编Ahm*_*met的帖子

Python MD5 Cracker "TypeError: object supporting the buffer API required"

My code looks as follows:

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.")
Run Code Online (Sandbox Code Playgroud)

But, I get this error when I run it:

    hs = hashlib.md5(new).hexdigest()
TypeError: object supporting the buffer API required
Run Code Online (Sandbox Code Playgroud)

How do I solve this? "b" bytes?

python md5 python-3.x

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

md5 ×1

python ×1

python-3.x ×1