PHP - Manual: sodium_crypto_stream_xchacha20_keygen
2024-12-21
(PHP 8 >= 8.1.0)
sodium_crypto_stream_xchacha20_keygen — Returns a secure random key
Returns a secure random key for use with sodium_crypto_stream_xchacha20().
此函数没有参数。
Returns a 32-byte secure random key for use with sodium_crypto_stream_xchacha20().
官方地址:https://www.php.net/manual/en/function.sodium-crypto-stream-xchacha20-keygen.php