sodium_crypto_generichash_final

PHP 7 >= 7.2.0, PHP 8
sodium_crypto_generichash_final - Complete the hash
Manual
Code Examples

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.

Example of sodium_crypto_generichash_final

Show all examples for sodium_crypto_generichash_final

PHP Version:


Function sodium_crypto_generichash_final:

Sodium Functions

Most used PHP functions