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 292 views
1 answer 294 views
1 answer 324 views
2 answers 231 views
231 views asked May 29, 2022 by avibootz
1 answer 251 views
1 answer 248 views
1 answer 293 views
...