You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
501 B
20 lines
501 B
import { globalConfig } from "./config";
|
|
import { decompressX64, compressX64 } from "./lzstring";
|
|
|
|
const Rusha = require("rusha");
|
|
|
|
const encryptKey = globalConfig.info.sgSalt;
|
|
|
|
export function decodeHashedString(s) {
|
|
return decompressX64(s);
|
|
}
|
|
|
|
export function sha1(str) {
|
|
return Rusha.createHash().update(str).digest("hex");
|
|
}
|
|
|
|
// Window.location.host
|
|
export function getNameOfProvider() {
|
|
return window[decodeHashedString("DYewxghgLgliB2Q")][decodeHashedString("BYewzgLgdghgtgUyA")];
|
|
}
|