MCPcopy Create free account
hub / github.com/ClydeTime/Surge / getQuery

Function getQuery

Script/Task/amap.js:115–131  ·  view source on GitHub ↗
(node, adiu,channel, key, sign)

Source from the content-addressed store, hash-verified

113 return md5(sign).toUpperCase()
114}
115function getQuery(node, adiu,channel, key, sign) {
116 let xck = RSA_Public_Encrypt(key);
117 let _in = {
118 "channel": channel,
119 "sign": sign
120 };
121 _in = Encrypt_Body(Json2Form(_in), key);
122 let query = {
123 "adiu": adiu,
124 "node": node,
125 "env": "prod",
126 "xck_channel": "default",
127 "xck": encodeURIComponent(xck),
128 "in": encodeURIComponent(_in)
129 }
130 return Json2Form(query)
131}
132function getBody(body,key) {
133 body = 'in=' + encodeURIComponent(Encrypt_Body(Json2Form(body), key));
134 return body

Callers 2

checkInFunction · 0.85
signInFunction · 0.85

Calls 3

RSA_Public_EncryptFunction · 0.85
Encrypt_BodyFunction · 0.85
Json2FormFunction · 0.85

Tested by

no test coverage detected