(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.
message
The message being hashed.
key
(Optional) cryptographic key. This serves the same function as a HMAC key, but it's utilized as a reserved section of the internal BLAKE2 state.
length
Output size.
The cryptographic hash as raw bytes. If a hex-encoded output is desired, the result can be passed to sodium_bin2hex().
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant