PHP.nl

sodium_crypto_box_keypair_from_secretkey_and_publickey

sodium_crypto_box_keypair_from_secretkey_and_publickey

Create a unified keypair string from a secret key and public key

string **sodium_crypto_box_keypair_from_secretkey_and_publickey** string $secret_key string $public_key

This function exists to satisfy the API requirements of e.g. . Pass in one party's secret key and the other's public key, and you will obtain a "keypair" for your conversation. crypto_box

secret_keySecret key.

public_keyPublic key.

X25519 Keypair.