- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match: documentation ( source)
- strtolower: documentation ( source)
<?php
echo 'METHODS CONTAINING SIV:', PHP_EOL;
foreach (openssl_get_cipher_methods() as $method) {
if (preg_match('/siv/', strtolower($method))) {
var_dump($method);
}
}
echo PHP_EOL, str_repeat('-', 80), PHP_EOL, PHP_EOL;
echo 'ALL METHODS:', PHP_EOL;
var_dump(openssl_get_cipher_methods());