예제 #1
0
파일: Cookie.php 프로젝트: nabble/ajde
 protected function writer()
 {
     if ($this->_secure) {
         return Ajde_Component_String::encrypt(serialize($this->values()));
     } else {
         return serialize($this->values());
     }
 }
예제 #2
0
파일: Model.php 프로젝트: nabble/ajde
 public function doEncrypt($string)
 {
     return Ajde_Component_String::encrypt(self::ENCRYPTION_PREFIX . config('security.secret') . $string);
 }