- var_dump: documentation ( source)
- base64_encode: documentation ( source)
<?php
for ($i = -1; $i <= 24; $i++) {
$bytes = openssl_random_pseudo_bytes($i, $cstrong);
$hex = base64_encode($bytes);
echo "Lengths: Bytes: $i and Hex: " . strlen($hex) . PHP_EOL;
var_dump($hex);
var_dump($cstrong);
echo PHP_EOL;
}
?>