我收到此错误:
Traceback (most recent call last):
File "crack.py", line 12, in <module>
filemd5 = md5.new(password.strip()).hexdigest()
AttributeError: 'builtin_function_or_method' object has no attribute 'new'
我正在尝试修复,但我不能
这是我的代码:
from hashlib import md5
for password in pwfile:
filemd5 = md5.new(password.strip()).hexdigest()