How to get the openssl cipher iv length in PHP

1 Answer

0 votes
// int openssl_cipher_iv_length ( string $method )

$method = 'AES-128-CBC';
$openssl_ivlen = openssl_cipher_iv_length($method);

echo $openssl_ivlen . " bytes";

/*
run:
    
16 bytes  
       
*/

 



answered Jul 14, 2016 by avibootz

Related questions

1 answer 295 views
1 answer 299 views
1 answer 328 views
2 answers 235 views
235 views asked May 29, 2022 by avibootz
1 answer 255 views
1 answer 254 views
1 answer 297 views
...