- phpversion: documentation ( source)
<?php
if (phpversion() != '5.5.5') {
echo 'Wrong version.';
die;
}
$config = array(
"digest_alg" => "sha512",
"private_key_bits" => 4096,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
// Create the private and public key
$res = openssl_pkey_new($config);
$data = 'this-is-data';
//$t = openssl_seal($data, $sealed, $keys, []);