sodium_crypto_box_seal_open

Advertisement

Syntax Syntax

sodium_crypto_box_seal_open( string $message, string $kp )

Parameters Parameters

$message

(Required)

$kp

(Required)

Return Return

(string|bool)

Source Source

File: wp-includes/sodium_compat/lib/php72compat.php

    function sodium_crypto_box_seal_open($message, $kp)
    {
        try {
            return ParagonIE_Sodium_Compat::crypto_box_seal_open($message, $kp);
        } catch (SodiumException $ex) {
            if ($ex->getMessage() === 'Argument 2 must be CRYPTO_BOX_KEYPAIRBYTES long.') {
                throw $ex;
            }
            return false;
        }
    }

Advertisement

See also See also

Advertisement

Leave a Reply