import hashlib
def stringtomd5(originstr):
"""将string转化为MD5"""
signaturemd5 = hashlib.md5()
signaturemd5.update(originstr)
return signaturemd5.hexdigest()
import hashlib
def stringtomd5(originstr):
"""将string转化为MD5"""
signaturemd5 = hashlib.md5()
signaturemd5.update(originstr)
return signaturemd5.hexdigest()