sodium_crypto_shorthash

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Compute a short hash of a message and key
<?php sodium_crypto_shorthash(string $message, string $key): string