php加密与解密函数(不支持中文)
时间:2021-07-01 10:21:17
帮助过:13人阅读
- /*
- @名称:PHP加密/解密
- @link:bbs.it-home.org
- @date:2013/2/28
- */
- function phpencode($code) {
- $code = str_replace(array('',' $encode = base64_encode(gzdeflate($code)); // 开始编码
- $encode = '";
- return $encode;
- }
-
- function phpdecode($code) {
- $code = str_replace(array(''),array('','','','','',''),$code);
- $decode = base64_decode($code);
- $decode = @gzinflate($decode);
- return $decode;
- }
- ?>
-
-
-
-
- PHP加密/解密
-
-
-
-
PHP加密/解密 -
-
-
|