WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen() public WP 1.0

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

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

No Hooks.


String. Null. Nothing.


$result = ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen();

Code of ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen() WP 5.7

public static function crypto_aead_chacha20poly1305_keygen()
    return random_bytes(self::CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES);