Need help with apikeylib?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

xuningjack
200 Stars 92 Forks 16 Commits 0 Opened issues

Description

Generating sign when access the Internet. (访问网络时签名的生成)

Services available

!
?

Need anything else?

Contributors list

No Data

apikeylib

Generating sign when access the Internet. (访问网络时签名sign的生成)
包括按照map的key排序后value的拼接逻辑。

目前提供以下几种签名生成的逻辑:
1、requestbody(格式如:key1=value1&key2=value2)按照key排序后value拼接。 MD5源数据的字符串后,拼接usertoken、appkey、timestamp后md5。
调用方法:
SignHelper.getAuthorization(final String requestBody, final String userToken, final long timestamp)

2、MD5源数据的字符串后,再拼接appkey后,再MD5,生成最终的字符串。
调用方法:
SignHelper.getJniEncrptyBytesByMd5(String sign)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.