{'iv'}); $encrypted_64 = $json->{'data'}; $data_encrypted = base64_decode($encrypted_64); $decrypted = openssl_decrypt($data_encrypted, 'aes-256-cbc', $secret_key, OPENSSL_RAW_DATA, $iv); return $decrypted; } function obtainKey($url){ $c = curl_init($url); curl_setopt($c,CURLOPT_RETURNTRANSFER,1); $j = curl_exec($c); $json_decode = json_decode($j,1); return $json_decode["_string"]; } $premium_unlock = false; if(isset($_COOKIE["premium"])){ $_string = obtainKey("https://lordchannel.com/premium-key/"); $ekey = ""; $decryptionstring = my_decrypt($_COOKIE["premium"],$ekey); if($_string == $decryptionstring){ $premium_unlock = true; } } ?>
Server 1