Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
hushulin committed Mar 2, 2020
1 parent d3645b7 commit 2dc3a58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
>
3. 认证方式
> 每个API调用都有一个使用您的私钥生成的SHA-512 HMAC签名。我们的服务器会生成自己的HMAC签名,并将其与API调用者的签名进行比较。如果它们不匹配,则将放弃API调用。HMAC签名作为称为“sign”的字段发送。
- 对所有字段除sign外,进行字典排序
- 所有请求参数编码成json string,用您的私钥照上述方式签名
- 注意每个字段都应该是string型,如果字段里出现integer情况,也需要转成string型
Expand Down

0 comments on commit 2dc3a58

Please sign in to comment.