作者:哦是你的嘛_416 | 来源:互联网 | 2018-03-19 03:33
<?classencryptCalss{var$key12;functionencode($txt){for($i0;$i<strlen($txt);$i++){$txt[$i]chr(ord($txt[$i])+$this->key);}return$txturlencode(base64_e
class encryptCalss
{
var $key=12;
function encode($txt){
for($i=0;$ikey);
}
return $txt=urlencode(base64_encode(urlencode($txt)));
}
function decode($txt){
$txt=urldecode(base64_decode($txt));
for($i=0;$ikey);
}
return $txt;
}
}
?>
可以逆转的加密类,没有密钥很难破解