@ 2016-08-29T10:38:31Z <?php
$cipher = 'AES-256-CBC';
$cipher = 'AES-256-CFB8';
$mode = strtolower(substr($cipher, strrpos($cipher, '-') - strlen($cipher)));
$ivSize = openssl_cipher_iv_length($cipher);
$blockSize = $ivSize > 0
? $ivSize
: openssl_cipher_iv_length(str_ireplace('-' . $mode, '', $cipher));
var_dump($mode);
var_dump($ivSize);
var_dump($blockSize);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.2.29 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.19 , 8.3.0 - 8.3.7 Fatal error: Uncaught Error: Call to undefined function openssl_cipher_iv_length() in /in/iX0DF:6
Stack trace:
#0 {main}
thrown in /in/iX0DF on line 6
Process exited with code 255 . Output for 5.6.0 - 5.6.25 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.7 , 7.2.0 string(5) "-cfb8"
int(16)
int(16)
preferences:dark mode live preview
161.14 ms | 402 KiB | 184 Q