A WordPress-centric search engine for devs and theme authors



sodium_crypto_aead_chacha20poly1305_decrypt ›

Sincen/a
Deprecatedn/a
sodium_crypto_aead_chacha20poly1305_decrypt ( $message, $assocData, $nonce, $key )
Parameters: (4)
  • (string) $message
    Required: Yes
  • (string) $assocData
    Required: Yes
  • (string) $nonce
    Required: Yes
  • (string) $key
    Required: Yes
See:
Returns:
  • (string)
Defined at:
Codex:

No description yet.



Source

function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)
    {
        try {
            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key);
        } catch (Error $ex) {
            return false;
        } catch (Exception $ex) {
            return false;
        }
    }
}