sodium_crypto_secretbox_keygen

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Generate random key for sodium_crypto_secretbox
<?php sodium_crypto_secretbox_keygen(): string