67 is_null($mode) || ($this->Mode = $mode);
68 is_null($key) || ($this->Key = $key);
83 return __CLASS__ .
" object\n"
85 .
" [Key] => {$this->_key}\n"
86 .
" [Mode] => {$this->_mode}\n"
103 case 'Key' :
return $this->
_setKey($value);
104 case 'Mode':
return $this->
_setMode($value);
140 $this->_key[
$i % strlen($this->_key)];
142 return base64_encode(@$encrypt);
164 $crypt = (string)base64_decode($crypt);
165 for (
$i=0;
$i<strlen($crypt);
$i++)
166 @
$data .= $crypt[
$i] ^ $this->_key[
$i % strlen($this->_key)];
216 $this->_key = (string) $key;
232 && ($this->_mode = (int)$mode);
249 @$hexcrypt .= str_pad(dechex(ord(
250 $data[
$i])), 2, 0, STR_PAD_LEFT);
266 $hexcrypt = (string) $hexcrypt;
267 for (
$i=0;
$i<strlen($hexcrypt);
$i+=2)
268 @
$data .= chr(hexdec(substr($hexcrypt,
$i, 2)));