import hashlib
def stringtomd5(originstr):
"""将string转化为MD5"""
signaturemd5 = hashlib.md5()
signaturemd5.update(originstr)
return signaturemd5.hexdigest()
转载于:https://www.cnblogs.com/snowDream-shineDream/p/9157324.html
import hashlib
def stringtomd5(originstr):
"""将string转化为MD5"""
signaturemd5 = hashlib.md5()
signaturemd5.update(originstr)
return signaturemd5.hexdigest()
转载于:https://www.cnblogs.com/snowDream-shineDream/p/9157324.html