« sodium_crypto_stream
sodium_crypto_stream_xchacha20 »

sodium_crypto_stream_keygen

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_stream_keygen — sodium_crypto_stream で用いる、ランダムな鍵を生成する

説明

function sodium_crypto_stream_keygen(): string

sodium_crypto_stream() や sodium_crypto_stream_xor() で用いる鍵を生成します。

パラメータ

この関数にはパラメータはありません。

戻り値

256ビット長の暗号化キーを返します。

関連キーワード:
sodium   crypto   stream   ランダム   keygen   xchacha   Sodium   ビット   暗号化   キー
関連する関数・ページ:
function.sodium-crypto-stream-xchacha20-keygen   function.sodium-crypto-auth-keygen   function.sodium-crypto-stream   function.sodium-crypto-kdf-keygen   function.sodium-crypto-shorthash-keygen   function.sodium-crypto-aead-aes256gcm-keygen