import hashlib #api验签 参数按首字母排序,然后拼接clientid=123456&num=xxxx&status=1×tamp=1573197760 加上secret值 然后再md5 m = hashlib.md5() m.update(b'clientid=123456&num=xxxx&status=1×tamp=15731977602990ff1e-adt6-452c-b12a-13942f28haba')
b = m.hexdigest()
print(b)
打印值:be2bf150ae3879a91a20353a770b8b6e
md5在线加密地址:
https://md5jiami.51240.com/