sodium_crypto_box_seal_open

Advertisement

Syntax Syntax

sodium_crypto_box_seal_open( string $message, string $kp )

Parameters Parameters

$message

(string) (Required)

$kp

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.