ParagonIE_Sodium_Compat::crypto_stream_xor

SummerySummery

DANGER! UNAUTHENTICATED ENCRYPTION!

Syntax

ParagonIE_Sodium_Compat::crypto_stream_xor( string $message, string $nonce, string $key )

DescriptionDescription

Unless you are following expert advice, do not used this feature.

Algorithm: XSalsa20

This DOES NOT provide ciphertext integrity.

ParametersParameters

$message

(string) (Required) Plaintext message

$nonce

(string) (Required) Number to be used Once; must be 24 bytes

$key

(string) (Required) Encryption key

ReturnReturn

(string) Encrypted text which is vulnerable to chosen- ciphertext attacks unless you implement some other mitigation to the ciphertext (i.e. Encrypt then MAC)

SourceSource

File: wp-includes/sodium_compat/src/Compat.php


			
Scroll to Top