<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sodium.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.sodium-crypto-stream-keygen.php',
    1 => 'sodium_crypto_stream_keygen',
    2 => 'Генерирует случайный ключ sodium_crypto_stream',
  ),
  'up' => 
  array (
    0 => 'ref.sodium.php',
    1 => 'Функции Sodium',
  ),
  'prev' => 
  array (
    0 => 'function.sodium-crypto-stream.php',
    1 => 'sodium_crypto_stream',
  ),
  'next' => 
  array (
    0 => 'function.sodium-crypto-stream-xchacha20.php',
    1 => 'sodium_crypto_stream_xchacha20',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/sodium/functions/sodium-crypto-stream-keygen.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sodium-crypto-stream-keygen" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sodium_crypto_stream_keygen</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.2.0, PHP 8)</p><p class="refpurpose"><span class="refname">sodium_crypto_stream_keygen</span> &mdash; <span class="dc-title">Генерирует случайный ключ sodium_crypto_stream</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sodium-crypto-stream-keygen-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sodium_crypto_stream_keygen</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Создаёт ключ, который используется в <span class="function"><a href="function.sodium-crypto-stream.php" class="function">sodium_crypto_stream()</a></span> и <span class="function"><a href="function.sodium-crypto-stream-xor.php" class="function">sodium_crypto_stream_xor()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.sodium-crypto-stream-keygen-parameters">
  <h3 class="title">Список параметров</h3>
  
<p class="para">
 Сигнатура функции не содержит параметров.
</p>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sodium-crypto-stream-keygen-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   Ключ шифрования (256 бит).
  </p>
 </div>



</div><?php manual_footer($setup); ?>