标签:style blog color io sp div c on cti
//cookie加密 function cookie_encode($value) { $key = sha1(‘alsdfj’); //随机加密字符,可以多重加密,越复杂越好 $temp = $value ^ $key; return base64_encode($temp); } //cookie解密 function cookie_decode($value) { $key = sha1(‘alsdfj’); $temp = base64_decode($value); return $temp ^ $key; }
标签:style blog color io sp div c on cti
原文地址:http://www.cnblogs.com/lxdd/p/4006727.html