Proyectos de Subversion LeadersLinked - Services

Rev

Rev 218 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 218 Rev 219
Línea 83... Línea 83...
83
         * @throws \Exception
83
         * @throws \Exception
84
         */
84
         */
85
        public function decrypt() {
85
        public function decrypt() {
86
            if ($this->validateParams()) {
86
            if ($this->validateParams()) {
87
                $ret=openssl_decrypt($this->data, $this->method, $this->key, $this->options,$this->getIV());
87
                $ret=openssl_decrypt($this->data, $this->method, $this->key, $this->options,$this->getIV());
-
 
88
                error_log('ret = ' . $ret . ' data = ' . $this->data . ' key = ' . $this->key);
Línea 88... Línea 89...
88
                
89
                
89
                return   trim($ret);
90
                return   trim($ret);
90
            } else {
91
            } else {
91
                throw new \Exception('Invlid params!');
92
                throw new \Exception('Invlid params!');