: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (class_exists('ParagonIE_Sodium_Core32_XSalsa20', false)) {
* Class ParagonIE_Sodium_Core32_XSalsa20
abstract class ParagonIE_Sodium_Core32_XSalsa20 extends ParagonIE_Sodium_Core32_HSalsa20
* Expand a key and nonce into an xsalsa20 keystream.
* @internal You should not use this directly from another application
* @throws SodiumException
public static function xsalsa20($len, $nonce, $key)
self::substr($nonce, 16, 8),
self::hsalsa20($nonce, $key)
* Encrypt a string with XSalsa20. Doesn't provide integrity.
* @internal You should not use this directly from another application
* @throws SodiumException
public static function xsalsa20_xor($message, $nonce, $key)