很多下载类网站都提供“迅雷下载”的链接,其地址通常是加密的迅雷专用下载地址。
  如thunder://QUFodHRwOi8vd3d3LmJhaWR1LmNvbS9pbWcvc3NsbTFfbG9nby5naWZaWg==
  其实迅雷的“专用地址”也是用Base64加密的,其加密过程如下:
  一、在地址的前后分别添加AA和ZZ
  如www.baidu.com/img/sslm1_logo.gif变成
  AAwww.baidu.com/img/sslm1_logo.gifZZ
  二、对新的字符串进行Base64编码
  如AAwww.baidu.com/img/sslm1_logo.gifZZ用Base64编码得到
  QUFodHRwOi8vd3d3LmJhaWR1LmNvbS9pbWcvc3NsbTFfbG9nby5naWZaWg==
  三、在上面得到的字符串前加上“thunder://”就成了
  thunder://QUFodHRwOi8vd3d3LmJhaWR1LmNvbS9pbWcvc3NsbTFfbG9nby5naWZaWg==
  四、在PHP中的解密迅雷,快车,QQ旋风的链接的代码.
  <?php
  $txt1=trim($_POST[''text1'']);
  $txt2=trim($_POST[''text2'']);
  $txt3=trim($_POST[''text3'']);
  $button=$_POST[''button''];
  ?>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  <html>
  <head>
  <title>迅雷和FlashGet,QQ旋风地址 地址转换工具</title>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <meta content="迅雷,FlashGet,地址转换," name="keywords">
  </head>
  <body>
  <form name="form1" method="post" action="">
  <hr size="1">
  <h3>迅雷转换</h3>
  <P>转换地址:
  <input name="text1" value="<?php echo $txt1;?>" type="text" style="width:516px;" /></P>
  <P>转换后的:
  <input type="text" value="<?php
  if($button=="普通地址->迅雷地址") echo "thunder://".base64_encode("AA".$txt1."ZZ");
  if($button=="迅雷地址->普通地址") echo substr(base64_decode(str_ireplace("thunder://","",$txt1)),2,-2);
  ?>" style="width:516px;" /></P>
  <P>
  <input type="submit" name="button" value="普通地址->迅雷地址" />
  <input type="submit" name="button" value="迅雷地址->普通地址" /></P>
  <h3>FlashGet转换</h3>
  <P>FlashGet地址:
  <input name="text2" value="<?php echo $txt2;?>" type="text" style="width:516px;" /></P>
  <P>转换后 地址:
  <input type="text" value="<?php
  if($button=="普通地址->FlashGet地址") echo "flashget://".base64_encode($txt2);
  if($button=="FlashGet地址->普通地址") echo str_ireplace("[FLASHGET]","",base64_decode(str_ireplace("flashget://","",$txt2)));
  ?>" style="width:516px;" /></P>
  <P>
  <input type="submit" value="普通地址->FlashGet地址" name="button" />
  <input type="submit" value="FlashGet地址->普通地址" name="button" /></P>
  <h3>QQ旋风转换</h3>
  <P>QQ旋风地址:
  <input name="text3" value="<?php echo $txt3;?>" type="text" style="width:516px;" /></P>
  <P>转换后 地址:
  <input type="text" value="<?php
  if($button=="普通地址->QQ旋风") echo "qqdl://".base64_encode($txt3);
  if($button=="QQ旋风->普通地址") echo base64_decode(str_ireplace("qqdl://","",$txt3));
  ?>" style="width:516px;" /></P>
  <P>
  <input type="submit" value="普通地址->QQ旋风" name="button" />
  <input type="submit" value="QQ旋风->普通地址" name="button" /></P>
  </form>
  </body>
  </html>