public static function ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_keygen in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_keygen()
Return a secure random key for use with the AES-256-GCM symmetric AEAD interface.
Return value
string
Throws
Exception
Error
File
- vendor/
paragonie/ sodium_compat/ src/ Compat.php, line 449
Class
Code
public static function crypto_aead_aes256gcm_keygen() {
return random_bytes(self::CRYPTO_AEAD_AES256GCM_KEYBYTES);
}