1 // 异位加密或者解密 2 function encrytion($value, $type=0){ 3 $key = md5(C(‘AUTO_LOGIN_KEY‘)); 4 5 if ($type) { 6 // 异位加密 7 return str_replace(‘=‘, ‘‘, base64_encode($value ^ $key)); 8 } 9 10 $value = base64_decode($value); 11 return $value ^ $key; 12 }
时间: 2024-12-20 00:49:30