WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen() public WP 1.0

Return a secure random key for use with the ChaCha20-Poly1305 symmetric AEAD interface. (IETF version)

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen();

Code of ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen() WP 5.8.2

public static function crypto_aead_chacha20poly1305_ietf_keygen()
{
    return random_bytes(self::CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES);
}