ParagonIE_Sodium_Core_XSalsa20::xsalsa20_xor() public WP 1.0
Encrypt a string with XSalsa20. Doesn't provide integrity.
{} It's a method of the class: ParagonIE_Sodium_Core_XSalsa20{}
No Hooks.
Return
String
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Core_XSalsa20::xsalsa20_xor( $message, $nonce, $key );
- $message(string) (required)
- -
- $nonce(string) (required)
- -
- $key(string) (required)
- -
Code of ParagonIE_Sodium_Core_XSalsa20::xsalsa20_xor() ParagonIE Sodium Core XSalsa20::xsalsa20 xor WP 5.7.1
public static function xsalsa20_xor($message, $nonce, $key)
{
return self::xorStrings(
$message,
self::xsalsa20(
self::strlen($message),
$nonce,
$key
)
);
}