ParagonIE_Sodium_Core32_XSalsa20::xsalsa20_xor

Advertisement

Summery Summery

Encrypt a string with XSalsa20. Doesn’t provide integrity.

Syntax Syntax

ParagonIE_Sodium_Core32_XSalsa20::xsalsa20_xor( string $message, string $nonce, string $key )

Parameters Parameters

$message

(string) (Required)

$nonce

(string) (Required)

$key

(string) (Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Core32/XSalsa20.php

    public static function xsalsa20_xor($message, $nonce, $key)
    {
        return self::xorStrings(
            $message,
            self::xsalsa20(
                self::strlen($message),
                $nonce,
                $key
            )
        );
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.