PHP 8.1.28 Released!


(PHP 7 >= 7.2.0, PHP 8)

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


sodium_crypto_box_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key): string

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

Liste de paramètres


Secret key.


Public key.

Valeurs de retour

X25519 Keypair.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top