Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let API_KEY = "a2c903cc-b31e-4547-9299-b6d07b7631ab";
- let a = 1111111111111;
- function comb(t, e) {
- let n = "".concat(t, "|").concat(e);
- return n.toString("base64");
- }
- function encryptApiKey() {
- let t = API_KEY,
- e = t.split(""),
- n = e.splice(0, 8);
- return (t = e.concat(n).join(""));
- }
- function encryptTime(t) {
- let 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 getApiKey() {
- let t = new Date().getTime(),
- e = encryptApiKey();
- return (t = encryptTime(t)), comb(e, t);
- }
- console.log(getApiKey());
Add Comment
Please, Sign In to add comment