Summery Summery
Encrypt a string with XSalsa20. Doesn’t provide integrity.
Syntax Syntax
Parameters Parameters
- $message
-
(Required)
- $nonce
-
(Required)
- $key
-
(Required)
Return Return
(string)
Source Source
File: wp-includes/sodium_compat/src/Core/XSalsa20.php
public static function xsalsa20_xor($message, $nonce, $key) { return self::xorStrings( $message, self::xsalsa20( self::strlen($message), $nonce, $key ) ); }