array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'function.sodium-crypto-auth-keygen.php', 1 => 'sodium_crypto_auth_keygen', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Функции Sodium', ), 'prev' => array ( 0 => 'function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen.php', 1 => 'sodium_crypto_aead_xchacha20poly1305_ietf_keygen', ), 'next' => array ( 0 => 'function.sodium-crypto-auth-verify.php', 1 => 'sodium_crypto_auth_verify', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ru', 'path' => 'reference/sodium/functions/sodium-crypto-auth-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_auth_keygen — Создаёт случайный ключ для sodium_crypto_auth
Создаёт ключ для использования в sodium_crypto_auth() и sodium_crypto_auth_verify().
У этой функции нет параметров.
Возвращает 256-битный случайный ключ.