protected function _openCipher()
    {
        $cipher = mcrypt_module_open(
            $this->_encryption['algorithm'],
            $this->_encryption['algorithm_directory'],
            $this->_encryption['mode'],
            $this->_encryption['mode_directory']);

        if ($cipher === false) {

            throw new Zend_Filter_Exception('Mcrypt can not be opened with your settings');
        }

        return $cipher;
    }
protected function _openCipher()
    {
        $cipher = mcrypt_module_open(
            $this->_encryption['algorithm'],
            $this->_encryption['algorithm_directory'],
            $this->_encryption['mode'],
            $this->_encryption['mode_directory']);

        if ($cipher === false) {

            throw new Zend_Filter_Exception('Mcrypt can not be opened with your settings');
        }

        return $cipher;
    }
protected function _openCipher ( ) { $ cipher = mcrypt_module_open ( $ this -> _encryption [ 'algorithm' ] , $ this -> _encryption [ 'algorithm_directory' ] , $ this -> _encryption [ 'mode' ] , $ this -> _encryption [ 'mode_directory' ] ) ; if ( $ cipher === false ) { throw new Zend_Filter_Exception ( 'Mcrypt can not be opened with your settings' ) ; } return $ cipher ; }
Open a cipher

@throws Zend_Filter_Exception When the cipher can not be opened
@return resource Returns the opened cipher
Open a cipher