鉴权签名计算

待签字符串参数

*应用Secret

*HTTPMethod

*RequestUrl

*Content-Type

Accept

Date

RequestBody

0/5000

签名值

在页面左侧填写待签字符串后,点击“计算签名”,即可生成签名值

签名计算步骤

1、整理RequestBody,去除换行符、回车符等

示例:{"thirdPartyUserId":"1234567890","name":"张三","idType":"CRED_PSN_CH_IDCARD", "idNumber":"430381198211017444","mobile":"13333333333","email":""}

2、对RequestBody的128位MD5二进制数组进行Base64编码,得到Content-MD5

示例:1B2M2Y8AsgTpgAmY7PhCfg==

3、 若RequestUrl中存在Query参数,则按照字典(ASCII码)升序对Query参数排序,得到排序后的RequestUrl

示例:/v1/signflows/1234567/executeUrl?accountId=438be8042d9843118cbca94f17dc

4、根据规则整理拼接待签字符串

示例:

GET

*/*

1B2M2Y8AsgTpgAmY7PhCfg==

application/json;charset=UTF-8

/v1/signflows/1234567/executeUrl?accountId=438be8042d9843118cbca94f17dc

5、使用HmacSHA256算法对待签字符串进行加密,得到签名值

示例:ZoBN4gpXmL+SuwRZkICk3kng1505mLilBAhgij2TAUA=