array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.sodium-crypto-aead-aes256gcm-keygen.php', 1 => 'sodium_crypto_aead_aes256gcm_keygen', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium 関数', ), 'prev' => array ( 0 => 'function.sodium-crypto-aead-aes256gcm-is-available.php', 1 => 'sodium_crypto_aead_aes256gcm_is_available', ), 'next' => array ( 0 => 'function.sodium-crypto-aead-chacha20poly1305-decrypt.php', 1 => 'sodium_crypto_aead_chacha20poly1305_decrypt', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/sodium/functions/sodium-crypto-aead-aes256gcm-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_aes256gcm_keygen — ランダムな AES-256-GCM 暗号化キーを生成する
sodium_crypto_aead_aes256gcm_encrypt() や sodium_crypto_aead_aes256gcm_decrypt() で使うランダムな鍵を生成します。
この関数にはパラメータはありません。
256ビット長のランダムな暗号化キーを返します。