Syntax Syntax
Parameters Parameters
- $len
- 
					(Optional) Default value: 64 
- $nonce
- 
					(Optional) Default value: '' 
- $key
- 
					(Optional) Default value: '' 
Return Return
(string)
Source Source
File: wp-includes/sodium_compat/src/Core/ChaCha20.php
    public static function stream($len = 64, $nonce = '', $key = '')
    {
        return self::encryptBytes(
            new ParagonIE_Sodium_Core_ChaCha20_Ctx($key, $nonce),
            str_repeat("\x00", $len)
        );
    }
			