Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 21927 программистов и 984 робота. Сейчас ищут 647 программистов ...
Приступая к работе

openssl_cipher_iv_length - Gets the cipher iv length

Вернуться к: OpenSSL

openssl_cipher_iv_length

(PHP 5 >= PHP 5.3.3, PHP 7)

openssl_cipher_iv_lengthGets the cipher iv length

Описание

int openssl_cipher_iv_length ( string $method )

Gets the cipher initialization vector (iv) length.

Список параметров

method

The cipher method, see openssl_get_cipher_methods() for a list of potential values.

Возвращаемые значения

Returns the cipher length on success, or FALSE on failure.

Ошибки

Emits an E_WARNING level error when the cipher algorithm is unknown.

Примеры

Пример #1 openssl_cipher_iv_length() example

<?php
$method 
'AES-128-CBC';
$ivlen openssl_cipher_iv_length($method);

echo 
$ivlen;
?>

Результатом выполнения данного примера будет что-то подобное:

16


Вернуться к: OpenSSL

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware