sodium_crypto_generichash_final
PHP 7 >= 7.2.0, PHP 8
sodium_crypto_generichash_final - Complete the hash
Manual
sodium_crypto_generichash_final(
stringstate ,
[int$length = SODIUM_CRYPTO_GENERICHASH_BYTES] ): string
The finalization method for the streaming generichash API.
Parameters
- state
-
Hash state returned from sodium_crypto_generichash_init
- length
-
Output length.
Return Values
Cryptographic hash.