TideFinger
TideFinger copied to clipboard
getMD5() 是否存在问题
def getMD5(c):
md5 = hashlib.md5()
# md5.update(ip.encode('utf-8'))
if type(c) == str:
md5.update(c.encode('utf-8'))
else:
md5.update(c)
return md5.hexdigest()