sodium_crypto_sign_keypair

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_keypairRandomly generate a secret key and a corresponding public key

說(shuō)明

sodium_crypto_sign_keypair(): string

Generate a random Ed25519 keypair as one string.

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

返回值

Ed25519 keypair.