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 225 views
1 answer 218 views
1 answer 221 views
2 answers 132 views
132 views asked May 29, 2022 by avibootz
1 answer 162 views
1 answer 162 views
1 answer 207 views
...