TideFinger icon indicating copy to clipboard operation
TideFinger copied to clipboard

getMD5() 是否存在问题

Open zmf963 opened this issue 3 years ago • 1 comments

zmf963 avatar Nov 09 '21 04:11 zmf963

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()

zmf963 avatar Nov 09 '21 04:11 zmf963