以下是代码片段:
function decryptffxp($ciphertext)
{
$magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
$count =0;
$length =strlen($ciphertext); bitsCN_com
while ($count < $length)
{
$cts.=chr(hexdec($ciphertext[$count] . $ciphertext[$count + 1]));
$count+=2;
}
$length =strlen($cts);
$count =0;
$mbcount=0;
while ($count + 1 < $length)
{
$foo = ord($cts[$count + 1]) ^ ord($magic_buffer[$mbcount]); bitsCN.Com网管联盟
if ($foo - ord($cts[$count]) < 0)
{
$plaintext.=chr($foo - ord($cts[$count]) + 255);
}
else
{
$plaintext.=chr($foo - ord($cts[$count]));
}
$count++;
$mbcount++; bitsCN.nET中国网管博客
if ($mbcount == 28)
{
$mbcount=0;
}
} BBS.bitsCN.com国内最早的网管论坛
return $plaintext;
}









