codecamp

PHP8 sodium_crypto_kdf_keygen

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_kdf_keygen — 为KDF接口生成一个随机的根密钥

说明

sodium_crypto_kdf_keygen(): string

生成一个随机密钥,适合用作 sodium_crypto_kdf_derive_from_key() 的根密钥。

参数 

此函数没有参数。

返回值 

随机的 256 位密钥。


PHP8 sodium_crypto_kdf_derive_from_key
PHP8 sodium_crypto_kx_client_session_keys
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定