sodium_crypto_secretstream_xchacha20poly1305_init_pull

PHP 7 >= 7.2.0, PHP 8
sodium_crypto_secretstream_xchacha20poly1305_init_pull - Initialize a secretstream context for decryption
Manual
Code Examples

sodium_crypto_secretstream_xchacha20poly1305_init_pull( string$header, string$key ): string

Initialize a secretstream context for decryption.

Parameters

header

The header of the secretstream. This should be one of the values produced by sodium_crypto_secretstream_xchacha20poly1305_init_push.

key

Encryption key (256-bit).

Return Values

Secretstream state.

Example of sodium_crypto_secretstream_xchacha20poly1305_init_pull

Show all examples for sodium_crypto_secretstream_xchacha20poly1305_init_pull

PHP Version:


Function sodium_crypto_secretstream_xchacha20poly1305_init_pull:

Sodium Functions

Most used PHP functions