sodium_crypto_box_secretkey
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_box_secretkey — Extracts the secret key from a crypto_box keypair
说明
Given a keypair, fetch only the secret key.
参数
key_pair
-
A keypair, such as one generated by sodium_crypto_box_keypair() or sodium_crypto_box_seed_keypair()
返回值
X25519 secret key.
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.sodium-crypto-box-secretkey.php