ParagonIE_Sodium_Compat::crypto_box_open

SummerySummery

Decrypt a message previously encrypted with crypto_box().

Syntax

ParagonIE_Sodium_Compat::crypto_box_open( string $ciphertext, string $nonce, string $keypair )

ParametersParameters

$ciphertext

(string) (Required) Encrypted message

$nonce

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

$keypair

(string) (Required) Your secret key and the sender's public key

ReturnReturn

(string) The original plaintext message

SourceSource

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


			
Scroll to Top