ParagonIE_Sodium_Compat::crypto_box_seal_open

SummerySummery

Opens a message encrypted with crypto_box_seal(). Requires the recipient’s keypair (sk || pk) to decrypt successfully.

Syntax

ParagonIE_Sodium_Compat::crypto_box_seal_open( string $ciphertext, string $keypair )

DescriptionDescription

This validates ciphertext integrity.

ParametersParameters

$ciphertext

(string) (Required) Sealed message to be opened

$keypair

(string) (Required) Your crypto_box keypair

ReturnReturn

(string) The original plaintext message

SourceSource

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


			
Scroll to Top