sodium_crypto_generichash

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Get a hash of the message
<?php sodium_crypto_generichash(string $message, string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string