python md5验签


import
hashlib #api验签 参数按首字母排序,然后拼接clientid=123456&num=xxxx&status=1&timestamp=1573197760 加上secret值 然后再md5 m = hashlib.md5() m.update(b'clientid=123456&num=xxxx&status=1&timestamp=15731977602990ff1e-adt6-452c-b12a-13942f28haba')
b
= m.hexdigest()
print(b)

打印值:be2bf150ae3879a91a20353a770b8b6e


md5在线加密地址:
https://md5jiami.51240.com/

 

posted @ 2019-11-08 16:22  彩笔杀手  阅读(133)  评论(0编辑  收藏