public static function ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen in Automatic Updates 8
Same name and namespace in other branches
- 7 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen()
Return a secure random key for use with the XChaCha20-Poly1305 symmetric AEAD interface.
Return value
string
Throws
Exception
Error
1 call to ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen()
- php72compat.php in vendor/
paragonie/ sodium_compat/ lib/ php72compat.php
File
- vendor/
paragonie/ sodium_compat/ src/ Compat.php, line 934
Class
Code
public static function crypto_aead_xchacha20poly1305_ietf_keygen() {
return random_bytes(self::CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES);
}