Function __global->sodium_crypto_box_keypair_from_secretkey_and_publickey
Definitions
sources_custom/phpstub.php
- Create a keypair from a private and public key.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $secret_key | string | No | No | required parameter | N/A | N/A | The private key |
| $public_key | string | No | No | required parameter | N/A | N/A | The public key |
Returns
- The keypair
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Create a keypair from a private and public key.
*
* @param string $secret_key The private key
* @param string $public_key The public key
* @return string The keypair
*/
function sodium_crypto_box_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key) : string
* Create a keypair from a private and public key.
*
* @param string $secret_key The private key
* @param string $public_key The public key
* @return string The keypair
*/
function sodium_crypto_box_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key) : string
