现在的位置: 首页 > 综合 > 正文

国外FlashFxp解密代码

2013年08月28日 ⁄ 综合 ⁄ 共 550字 ⁄ 字号 评论关闭
function decryptffxp($ciphertext)
 {
 $magic_buffer="yA36zA48dEhfrvghGRg57h5UlDv3";
 $count =0;
 $length =strlen($ciphertext);

 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]);

 if ($foo - ord($cts[$count]) < 0)
 {
 $plaintext.=chr($foo - ord($cts[$count]) + 255);
 }
 else
 {
 $plaintext.=chr($foo - ord($cts[$count]));
 }

 $count++;
 $mbcount++;

 if ($mbcount == 28)
 {
 $mbcount=0;
 }
 }

 return $plaintext;
 }  

抱歉!评论已关闭.