sodium_crypto_stream_xchacha20
Supported Versions: PHP 8 >= 8.1.0
Expands the key and nonce into a keystream of pseudorandom bytes
<?php sodium_crypto_stream_xchacha20
(
int $length
,
string $nonce
,
string $key
):
string