array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.sodium-crypto-stream-keygen.php', 1 => 'sodium_crypto_stream_keygen', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium 関数', ), 'prev' => array ( 0 => 'function.sodium-crypto-sign.php', 1 => 'sodium_crypto_sign', ), 'next' => array ( 0 => 'function.sodium-crypto-stream-xchacha20-keygen.php', 1 => 'sodium_crypto_stream_xchacha20_keygen', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/sodium/functions/sodium-crypto-stream-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_stream_keygen — sodium_crypto_stream で用いる、ランダムな鍵を生成する
sodium_crypto_stream() や sodium_crypto_stream_xor() で用いる鍵を生成します。
この関数にはパラメータはありません。
256ビット長の暗号化キーを返します。