(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_generichash — Get a hash of the message
$message, #[\SensitiveParameter] string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): stringHash a message with BLAKE2b.
messagekeylengthThe cryptographic hash as raw bytes. If a hex-encoded output is desired, the result can be passed to sodium_bin2hex().