<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.sodium-crypto-box-keypair.php',
    1 => 'sodium_crypto_box_keypair',
    2 => 'Randomly generate a secret key and a corresponding public key',
  ),
  'up' => 
  array (
    0 => 'ref.sodium.php',
    1 => 'Sodium Функції',
  ),
  'prev' => 
  array (
    0 => 'function.sodium-crypto-box.php',
    1 => 'sodium_crypto_box',
  ),
  'next' => 
  array (
    0 => 'function.sodium-crypto-box-keypair-from-secretkey-and-publickey.php',
    1 => 'sodium_crypto_box_keypair_from_secretkey_and_publickey',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sodium/functions/sodium-crypto-box-keypair.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sodium-crypto-box-keypair" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sodium_crypto_box_keypair</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.2.0, PHP 8)</p><p class="refpurpose"><span class="refname">sodium_crypto_box_keypair</span> &mdash; <span class="dc-title">Randomly generate a secret key and a corresponding public key</span></p>

 </div>

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

  <p class="para rdfs-comment">
   Generates a secret key and a public key as one string.
  </p>
  <p class="para">
   To get the secret key out of this unified keypair string, see <span class="function"><a href="function.sodium-crypto-box-secretkey.php" class="function">sodium_crypto_box_secretkey()</a></span>.
   To get the public key out of this unified keypair string, see <span class="function"><a href="function.sodium-crypto-box-publickey.php" class="function">sodium_crypto_box_publickey()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.sodium-crypto-box-keypair-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sodium-crypto-box-keypair-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   One string containing both the X25519 secret key and corresponding X25519 public key.
  </p>
 </div>



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