PHP - Manual: sodium_crypto_sign_keypair
2024-11-14
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_sign_keypair — Randomly generate a secret key and a corresponding public key
Generate a random Ed25519 keypair as one string.
此函数没有参数。
Ed25519 keypair.
官方地址:https://www.php.net/manual/en/function.sodium-crypto-sign-keypair.php