<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $cookies ="EGAgHwQ1IxYYMSQYGSZxTUksPFVHYDEQCC0%2FGBlgaVVIJDURDSQ1VRY%3D"; $urlC = urldecode($cookies); $known_plain = '{"showpassword":"no"'; $guess_key = ''; for ($i = 0; $i < strlen($known_plain); $i++) { $guess_key .= $cipher[$i] ^ $known_plain[$i]; } echo $guess_key; $step1 = base64_decode($urlC); $tempdata = json_decode(xor_encrypt(base64_decode($urlC)), true);
You have javascript disabled. You will not be able to edit any code.