sodium_crypto_box_seed_keypair
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_box_seed_keypair — Deterministically derive the key pair from a single key
说明
Clamps the seed to form a secret key, derives the public key, and returns the two as a keypair.
The *_seed_keypair
functions are ideal for generating a keypair from a
password and salt. Use the result as a seed
to generate the desired keys.
参数
seed
-
Some cryptographic input. Must be 32 bytes.
返回值
X25519 Keypair (secret key and public key).
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.sodium-crypto-box-seed-keypair.php