ParagonIE_Sodium_Compat::crypto_secretbox

SummerySummery

Authenticated symmetric-key encryption.

Syntax

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

DescriptionDescription

Algorithm: XSalsa20-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