protected function reader() { if ($this->_secure) { return @unserialize(Ajde_Component_String::decrypt($_COOKIE[$this->_namespace])); } else { return @unserialize($_COOKIE[$this->_namespace]); } }
public function decrypt($field) { if (!$this->isEncrypted($field)) { return parent::_get($field); } $decrypted = str_replace(self::ENCRYPTION_PREFIX . config('security.secret'), '', Ajde_Component_String::decrypt(parent::_get($field))); return $decrypted; }