<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.sodium-crypto-stream-keygen.php',
    1 => 'sodium_crypto_stream_keygen',
    2 => 'Generate a random sodium_crypto_stream key.',
  ),
  'up' => 
  array (
    0 => 'ref.sodium.php',
    1 => 'Sodium Functions',
  ),
  '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' => 'en',
    '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">Generate a random sodium_crypto_stream key.</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sodium-crypto-stream-keygen-description">
  <h3 class="title">Description</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">
   Generate a key for use with <span class="function"><a href="function.sodium-crypto-stream.php" class="function">sodium_crypto_stream()</a></span> and <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">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sodium-crypto-stream-keygen-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Encryption key (256-bit).
  </p>
 </div>



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