(PHP 8 >= 8.1.0)
sodium_crypto_stream_xchacha20_keygen — Returns a secure random key
Returns a secure random key for use with sodium_crypto_stream_xchacha20().
This function has no parameters.
Returns a 32-byte secure random key for use with sodium_crypto_stream_xchacha20().