ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_keygen

Advertisement

Summery Summery

Return a secure random key for use with the AES-256-GCM symmetric AEAD interface.

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_keygen()

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Compat.php

    public static function crypto_aead_aes256gcm_keygen()
    {
        return random_bytes(self::CRYPTO_AEAD_AES256GCM_KEYBYTES);
    }

Advertisement

Advertisement

Leave a Reply