A WordPress-centric search engine for devs and theme authors



sodium_crypto_box_seal_open ›

Sincen/a
Deprecatedn/a
sodium_crypto_box_seal_open ( $message, $kp )
Parameters: (2)
  • (string) $message
    Required: Yes
  • (string) $kp
    Required: Yes
See:
Returns:
  • (string|bool)
Defined at:
Codex:

No description yet.



Source

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;
        }
    }
}