<?php
$decrypt .= "70 6c 6d 6b 6f 69 6a 6e ";
$decrypt .= "31 32 33 39 38 37 7a 61 ";
$decrypt .= "71 77 73 78 63 64 65 72 ";
$decrypt .= "66 76";
$explode_xor = explode(" ", $decrypt);
$i = 0;
$file = "mcc00.rcs";
$scrivi_file=fopen("mcc00.txt","w");
if (!$p_file = fopen("$file","r")) {
echo "Spiacente, non posso aprire il file";
} else {
while(!feof($p_file))
{
if ($i == 26) {$i = 0;}
$linea = fgets($p_file, 2);
$xor2 = hexdec(bin2hex($linea)) ^ hexdec($explode_xor[$i]);
$i++;
$stringa .= chr($xor2);
}
fwrite($scrivi_file,$stringa);
fclose($scrivi_file);
fclose($p_file);
}
?>