CI_Encryption::_openssl_get_handle PHP Method

_openssl_get_handle() protected method

Get OpenSSL handle
protected _openssl_get_handle ( string $cipher, string $mode ) : string
$cipher string Cipher name
$mode string Encryption mode
return string
    protected function _openssl_get_handle($cipher, $mode)
    {
        // OpenSSL methods aren't suffixed with '-stream' for this mode
        return $mode === 'stream' ? $cipher : $cipher . '-' . $mode;
    }