« sodium_crypto_stream_xchacha20
sodium_crypto_stream_xchacha20_xor »

sodium_crypto_stream_xchacha20_keygen

(PHP 8 >= 8.1.0)

sodium_crypto_stream_xchacha20_keygen — ランダムな暗号化キーを生成する

説明

function sodium_crypto_stream_xchacha20_keygen(): string

sodium_crypto_stream_xchacha20() で使うランダムな鍵を生成して返します。

パラメータ

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

戻り値

sodium_crypto_stream_xchacha20() で使う、 32バイト長のランダムな暗号化キーを返します。

関連キーワード:
sodium   crypto   stream   xchacha   ランダム   暗号化   キー   keygen   Sodium   バイト
関連する関数・ページ:
function.sodium-crypto-stream-keygen   function.sodium-crypto-stream-xchacha20-xor   function.sodium-crypto-stream-xchacha20-xor-ic   function.sodium-crypto-stream-xchacha20   function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen   function.sodium-crypto-secretstream-xchacha20poly1305-keygen