use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\RequestOptions;

class CryptoJS { public static function MD5($data) { return md5($data); }

public static function AES_encrypt($data, $key, $iv) {
    $encryptedData = openssl_encrypt($data, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv);
    return base64_encode($encryptedData);
}

public static function AES_decrypt($encryptedData, $key, $iv) {
    $decryptedData = openssl_decrypt(base64_decode($encryptedData), 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv);
    return $decryptedData;
}

public static function enc_Utf8_parse($data) {
    return $data;
}

public static function enc_Base64_stringify($data) {
    return base64_encode($data);
}

public static function enc_Hex_parse($data) {
    return hex2bin($data);
}

public static function enc_Utf8_stringify($data) {
    return $data;
}

}

class TjtvService { public function p($e) { $a = $e . "|nYA$K0ueKqU19hCM"; $a = CryptoJS::MD5($a); $a = substr($a, 0, 16); $a = CryptoJS::enc_Utf8_parse($a); return $a; }

public function f($e, $a, $u) {
    return CryptoJS::AES_encrypt($e, $a, $u);
}

public function h($e, $a, $u) {
    $t = CryptoJS::enc_Hex_parse($e);
    $t = CryptoJS::enc_Base64_stringify($t);
    $r = CryptoJS::AES_decrypt($t, $a, $u);
    return CryptoJS::enc_Utf8_stringify($r);
}

public function y($e) {
    $t = "";
    for ($i = 0; $i < strlen($e); $i += 2) {
        $t .= $e[$i + 1];
        $t .= $e[$i];
    }
    if (strlen($e) % 2 == 1) {
        $t .= $e[strlen($e) - 1];
    }
    return $t;
}

public function get($vodId) {
    $a = "";
    $u = CryptoJS::enc_Utf8_parse("0dB\$Xgkr\$2p0Bc55");
    $userId = "oR-0X0Q-FPSY5G9P0Lvbl4230616"; //随机串可以改
    $deviceId = "wechat-" . $userId;
    $a = $this->p($deviceId); //改变a值
    $res = $vodId;
    $vodIds = ["30001110000000000000000000000691", "30001110000000000000000000000684", "30001110000000000000000000000686",
        "30001110000000000000000000000682", "30001110000000000000000000000685", "30001110000000000000000000000683",
        "30001110000000000000000000000689", "30001110000000000000000000000687", "30001110000000000000000000000688",
        "30001110000000000000000000001083", "30001110000000000000000000000690",

        //电视
        "30001110000000000000000000000698", "30001110000000000000000000000699", "30001110000000000000000000000700",
        "30001110000000000000000000000701", "30001110000000000000000000000702", "30001110000000000000000000000692",
        "30001110000000000000000000000693", "30001110000000000000000000000697", "30000110000000000000000000000034",
        "30000110000000000000000000000035",

        "30000110000000000000000000000053", "30000110000000000000000000000046", "30000110000000000000000000000048",
        "30000110000000000000000000000050", "30000110000000000000000000000041", "30000110000000000000000000000043",
        "30000110000000000000000000000051", "30000110000000000000000000000029", "30000110000000000000000000000036",
        "30000110000000000000000000000032",

        "30000110000000000000000000000030", "30000110000000000000000000000045", "30000110000000000000000000000038",
        "30000110000000000000000000000044", "30000110000000000000000000000040", "30000110000000000000000000000042",
        "30000110000000000000000000000037", "30000110000000000000000000000054", "30000110000000000000000000000055",
        "30000110000000000000000000000062",

        "30001110000000000000000000000501", "30000110000000000000000000000049", "30000110000000000000000000000059",
        "30000110000000000000000000000064",
const CryptoJS = requirecrypto-jsconst request = requiresync-request;解密方法S = hyurl加密方法R = yfreq 创建class其下是book相关逻辑函数class TjtvService pe var a = ; a = concate nYA$K0ueKqU19hCM a = a

原文地址: https://www.cveoy.top/t/topic/iAaZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录