crypto_secretbox_open

Advertisement

Syntax Syntax

crypto_secretbox_open( string $message, string $nonce, string $key )

Parameters Parameters

$message

(string) (Required)

$nonce

(string) (Required)

$key

(string) (Required)

Return Return

(string|bool)

Source Source

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

    function crypto_secretbox_open($message, $nonce, $key)
    {
        try {
            return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
        } catch (\TypeError $ex) {
            return false;
        } catch (\SodiumException $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.