array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.sodium-crypto-box-seed-keypair.php', 1 => 'sodium_crypto_box_seed_keypair', 2 => 'Deterministically derive the key pair from a single key', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium Funktionen', ), 'prev' => array ( 0 => 'function.sodium-crypto-box-secretkey.php', 1 => 'sodium_crypto_box_secretkey', ), 'next' => array ( 0 => 'function.sodium-crypto-core-ristretto255-add.php', 1 => 'sodium_crypto_core_ristretto255_add', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-crypto-box-seed-keypair.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

sodium_crypto_box_seed_keypair

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_box_seed_keypairDeterministically derive the key pair from a single key

Beschreibung

sodium_crypto_box_seed_keypair(#[\SensitiveParameter] string $seed): string

Clamps the seed to form a secret key, derives the public key, and returns the two as a keypair.

The *_seed_keypair functions are ideal for generating a keypair from a password and salt. Use the result as a seed to generate the desired keys.

Parameter-Liste

seed

Some cryptographic input. Must be 32 bytes.

Rückgabewerte

X25519 Keypair (secret key and public key).