« sodium_crypto_auth
sodium_crypto_auth_verify »

sodium_crypto_auth_keygen

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_auth_keygen — sodium_crypto_auth で使う、ランダムな鍵を生成する

説明

function sodium_crypto_auth_keygen(): string

sodium_crypto_auth() や sodium_crypto_auth_verify() で使う鍵を生成します。

パラメータ

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

戻り値

256ビット長のランダムな暗号化キーを返します。

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