PHP.nl

sodium_crypto_box_publickey

sodium_crypto_box_publickey

Extract the public key from a crypto_box keypair

string **sodium_crypto_box_publickey** string $key_pair

Given a keypair, fetch only the public key.

key_pair A keypair, such as one generated by or

 `sodium_crypto_box_keypair``sodium_crypto_box_seed_keypair`

X25519 public key.