Function __global->sodium_crypto_box_keypair
Definitions
sources_custom/phpstub.php
- Generates a private key and a public key as one string.To get the secret key out of this unified keypair string, see sodium_crypto_box_secretkey(). To get the public key out of this unified keypair string, see sodium_crypto_box_publickey().
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Returns
- The keypair
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Generates a private key and a public key as one string.To get the secret key out of this unified keypair string, see sodium_crypto_box_secretkey(). To get the public key out of this unified keypair string, see sodium_crypto_box_publickey().
*
* @return string The keypair
*/
function sodium_crypto_box_keypair() : string
* Generates a private key and a public key as one string.To get the secret key out of this unified keypair string, see sodium_crypto_box_secretkey(). To get the public key out of this unified keypair string, see sodium_crypto_box_publickey().
*
* @return string The keypair
*/
function sodium_crypto_box_keypair() : string
