ParagonIE_Sodium_Compat::crypto_secretbox_xchacha20poly1305

SummerySummery

Authenticated symmetric-key encryption.

Syntax

ParagonIE_Sodium_Compat::crypto_secretbox_xchacha20poly1305( string $plaintext, string $nonce, string $key )

DescriptionDescription

Algorithm: XChaCha20-Poly1305

ParametersParameters

$plaintext

(string) (Required) The message you're encrypting

$nonce

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

$key

(string) (Required) Symmetric encryption key

ReturnReturn

(string) Ciphertext with Poly1305 MAC

SourceSource

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


			
Scroll to Top