Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMD5() 是否存在问题 #16

Open
zmf963 opened this issue Nov 9, 2021 · 1 comment
Open

getMD5() 是否存在问题 #16

zmf963 opened this issue Nov 9, 2021 · 1 comment

Comments

@zmf963
Copy link

zmf963 commented Nov 9, 2021

No description provided.

@zmf963
Copy link
Author

zmf963 commented Nov 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant