ParagonIE_Sodium_Compat::crypto_secretbox_xchacha20poly1305_open

SummerySummery

Decrypts a message previously encrypted with crypto_secretbox_xchacha20poly1305().

Syntax

ParagonIE_Sodium_Compat::crypto_secretbox_xchacha20poly1305_open( string $ciphertext, string $nonce, string $key )

ParametersParameters

$ciphertext

(string) (Required) Ciphertext with Poly1305 MAC

$nonce

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

$key

(string) (Required) Symmetric encryption key

ReturnReturn

(string) Original plaintext message

SourceSource

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


			
Scroll to Top