def md5(preosign): import hashlib m = hashlib.md5() preosign = preosign.encode('utf-8') m.update(preosign) return m.hexdigest() if __name__ == '__main__': a = md5("0") print(a)
def md5(preosign): import hashlib m = hashlib.md5() preosign = preosign.encode('utf-8') m.update(preosign) return m.hexdigest() if __name__ == '__main__': a = md5("0") print(a)