2024 年日本 PHP 研討會

sodium_crypto_stream_keygen

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_stream_keygen產生一個隨機的 sodium_crypto_stream 金鑰。

說明

sodium_crypto_stream_keygen(): 字串

產生一個用於 sodium_crypto_stream()sodium_crypto_stream_xor() 的金鑰。

參數

此函數沒有參數。

回傳值

加密金鑰(256 位元)。

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top