以下是代码片段:
function decryptffxp($ciphertext)
{
$magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
$count =0;
$length =strlen($ciphertext);
bitsCN_net中国网管博客
while ($count < $length)
{
$cts.=chr(hexdec($ciphertext[$count] . $ciphertext[$count + 1]));
$count+=2;
} bbs.bitsCN.com国内最早的网管论坛
$length =strlen($cts);
$count =0;
$mbcount=0; bitsCN_net中国网管博客
while ($count + 1 < $length)
{
$foo = ord($cts[$count + 1]) ^ ord($magic_buffer[$mbcount]);
play.bitsCN.com累了吗玩一下吧
if ($foo - ord($cts[$count]) < 0)
{
$plaintext.=chr($foo - ord($cts[$count]) + 255);
}
else
{
$plaintext.=chr($foo - ord($cts[$count]));
}
bitsCN_net中国网管博客
$count++;
$mbcount++;
if ($mbcount == 28)
{
$mbcount=0;
}
} 需要什么来搜一搜吧so.bitsCN.com
return $plaintext;
}
play.bitsCN.com累了吗玩一下吧