sodium_crypto_stream

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Generate a deterministic sequence of bytes from a seed
<?php sodium_crypto_stream(int $length, string $nonce, string $key): string