shinemic

oklink.js

Apr 19th, 2023
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let API_KEY = "a2c903cc-b31e-4547-9299-b6d07b7631ab";
  2. let a = 1111111111111;
  3.  
  4. function comb(t, e) {
  5.     let n = "".concat(t, "|").concat(e);
  6.     return n.toString("base64");
  7. }
  8.  
  9. function encryptApiKey() {
  10.     let t = API_KEY,
  11.         e = t.split(""),
  12.         n = e.splice(0, 8);
  13.     return (t = e.concat(n).join(""));
  14. }
  15.  
  16. function encryptTime(t) {
  17.     let e = (1 * t + a).toString().split(""),
  18.         n = parseInt(10 * Math.random(), 10),
  19.         r = parseInt(10 * Math.random(), 10),
  20.         o = parseInt(10 * Math.random(), 10);
  21.     return e.concat([n, r, o]).join("");
  22. }
  23.  
  24. function getApiKey() {
  25.     let t = new Date().getTime(),
  26.         e = encryptApiKey();
  27.     return (t = encryptTime(t)), comb(e, t);
  28. }
  29.  
  30. console.log(getApiKey());
  31.  
Add Comment
Please, Sign In to add comment