Video SDK v3.7.1 API Reference for Unity
Properties | List of all members
agora_gaming_rtc.EncryptionConfig Class Reference

Properties

ENCRYPTION_MODE encryptionMode [get, set]
 
string encryptionKey [get, set]
 
byte[] encryptionKdfSalt [get, set]
 

Detailed Description

Configurations of built-in encryption schemas.

Constructor & Destructor Documentation

◆ EncryptionConfig()

agora_gaming_rtc.EncryptionConfig.EncryptionConfig ( )

Property Documentation

◆ encryptionMode

ENCRYPTION_MODE agora_gaming_rtc.EncryptionConfig.encryptionMode
getset

Encryption mode. The default encryption mode is AES_128_XTS. See ENCRYPTION_MODE.

◆ encryptionKey

string agora_gaming_rtc.EncryptionConfig.encryptionKey
getset

Encryption key in string type.

Note
If you do not set an encryption key or set it as NULL, you cannot use the built-in encryption, and the SDK returns ERR_INVALID_ARGUMENT (-2).

◆ encryptionKdfSalt

byte [] agora_gaming_rtc.EncryptionConfig.encryptionKdfSalt
getset

The salt with the length of 32 bytes. Agora recommends using OpenSSL to generate the salt on your server.

Note
his parameter is only valid when you set the encryption mode as AES_128_GCM2 or AES_256_GCM2. In this case, ensure that this parameter is not 0.

The documentation for this class was generated from the following file: