token. * But to get the correct PHPer token, * there are a few things you need to do before running this program. * * 1. You should get key1, key2 and key3 from getKey.php, * and fill <key1>, <key2> and <key3> of this program. * 2. The decrypt function does not work as expected for some reason. * This should be fixed. **/ $key1=<key1>; $key2=<key2>; $key3=<key3>; function decrypt(array $ciphertext, int $public_key, int $secret_key) { $hex = ""; foreach($ciphertext as $value) { $hex .= dechex($value ** $secret_key % $public_key); } $cleartext=hex2bin($hex); return $cleartext; } $ciphertext = [3181896, 6283063, 4748177, 3723679, 5707941]; $public_key = 8555851; $secret_key = ($key1 + $key2 * 2 + $key3 * 3) ** 2 * 2 ** 3 + $key2 * $key3 + $key2 + $key3 + 3; $cleartext=decrypt($ciphertext, $public_key, $secret_key); if(substr(md5($cleartext),0,30) === "97097d30ceb203d46ab08edf0308ba") { echo "PHPerToken is #" . $cleartext; } else { echo "Failed to get PHPerToken..."; }