略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: sodium_crypto_sign_seed_keypair

2024-11-14

sodium_crypto_sign_seed_keypair

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_seed_keypairDeterministically derive the key pair from a single key

说明

sodium_crypto_sign_seed_keypair(string $seed): string

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.

返回值

Keypair (secret key and public key)

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.sodium-crypto-sign-seed-keypair.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3