PHP - Manual: sodium_crypto_stream_keygen
2024-12-22
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_stream_keygen — Generate a random sodium_crypto_stream key.
Generate a key for use with sodium_crypto_stream() and sodium_crypto_stream_xor().
此函数没有参数。
Encryption key (256-bit).
官方地址:https://www.php.net/manual/en/function.sodium-crypto-stream-keygen.php