日期:2011-08-11 浏览次数:20511 次
01 | <?php |
02 |
03 | function RandAbc($length=""){//返回随机字符串 |
04 |
05 |
06 | $str="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
07 | return str_shuffle($str); |
08 |
09 | } |
10 |
11 |
12 | $filepath='index.php'; |
13 | $path_parts= pathinfo($filepath); |
14 | $filename=$path_parts["basename"]; |
15 |
16 | $T_k1=RandAbc();//随机密匙1 |
17 |
18 | $T_k2=RandAbc();//随机密匙2 |
19 |
20 |
21 | $vstr=file_get_contents($filename);//要加密的文件 |
22 |