PHP 8.4.6 Released!

sodium_crypto_box_publickey

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_box_publickeycrypto_box 鍵ペアから、公開鍵を取り出す

説明

sodium_crypto_box_publickey(#[\SensitiveParameter] string $key_pair): string

鍵ペアを指定し、そこから公開鍵のみを取り出します。

パラメータ

key_pair

sodium_crypto_box_keypair()sodium_crypto_box_seed_keypair() から生成した鍵ペア

戻り値

X25519 形式の公開鍵を返します。

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant