-
-
/*
- @name:PHP加密/解密
- @link:bbs.it-home.org
- @日期:2013/2/28
- */
- function phpencode($code) {
- $code = str_replace(array('',' PHP'),數組('','',''),$code);
- $encode = base64_encode(gzdeflate($code)); // 開始編碼
- $encode = '";
- 返回 $encode;
- }
-
- function phpdecode($code) {
- $code = str_replace(array(''),array('','','','','',''),$code);
- $decode = base64_decode($code);
- $decode = @gzinflate($decode);
- 返回 $decode;
- }
- ?>
-
-
-
- >
- PHP加密/解密
-
|