php8.5
Home/ Manual/ sodium / functions/ sodium_crypto_secretstream_xchacha20poly1305_keygen

sodium_crypto_secretstream_xchacha20poly1305_keygen

PHP function Edit on GitHub ✎

(PHP 7 >= 7.2.0, PHP 8)

Generate a random secretstream key.

Description

sodium_crypto_secretstream_xchacha20poly1305_keygen(): string

Generate a random secretstream key.

Parameters Parameters

Return Values

Returns a string of random bytes.

Source: reference/sodium/functions/sodium-crypto-secretstream-xchacha20poly1305-keygen.xml · from the official PHP manual (php/doc-en)