array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen.php', 1 => 'sodium_crypto_aead_xchacha20poly1305_ietf_keygen', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Funções da Sodium', ), 'prev' => array ( 0 => 'function.sodium-crypto-aead-xchacha20poly1305-ietf-encrypt.php', 1 => 'sodium_crypto_aead_xchacha20poly1305_ietf_encrypt', ), 'next' => array ( 0 => 'function.sodium-crypto-auth-keygen.php', 1 => 'sodium_crypto_auth_keygen', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-crypto-aead-xchacha20poly1305-ietf-keygen.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_aead_xchacha20poly1305_ietf_keygen — Generate a random XChaCha20-Poly1305 key.
Generate a random key for use with sodium_crypto_aead_xchacha20poly1305_ietf_encrypt() and sodium_crypto_aead_xchacha20poly1305_ietf_decrypt().
Esta função não possui parâmetros.
Returns a 256-bit random key.