查询参数确定
t无加密
请求头参数加密
X-Apikey参数加密确定
X-Apikey逆向
const API_KEY = "a2c903cc-b31e-4547-9299-b6d07b7631ab"
function encryptApiKey(){
var t = API_KEY
, e = t.split("")
, n = e.splice(0, 8);
return t = e.concat(n).join("")
};
function encryptTime(t) {
var a = 1111111111111;
var e = (1 * t + a).toString().split("")
, n = parseInt(10 * Math.random(), 10)
, r = parseInt(10 * Math.random(), 10)
, o = parseInt(10 * Math.random(), 10);
return e.concat([n, r, o]).join("")
};
function comb(t, e) {
var n = "".concat(t, "|").concat(e);
return btoa(n)
};
function getkey() {
var t = (new Date).getTime()
, e = encryptApiKey();
console.log(t);
return t = encryptTime(t),
comb(e, t)
};
result = getkey();
console.log(result);