Class EncryptionConfig

Built-in encryption configurations.

Hierarchy

  • EncryptionConfig

Constructors

Properties

datastreamEncryptionEnabled?: boolean

Whether to enable data stream encryption: true : Enable data stream encryption. false : (Default) Disable data stream encryption.

encryptionKdfSalt?: number[]

Salt, 32 bytes in length. Agora recommends that you use OpenSSL to generate salt on the server side. See Media Stream Encryption for details. This parameter takes effect only in Aes128Gcm2 or Aes256Gcm2 encrypted mode. In this case, ensure that this parameter is not 0.

encryptionKey?: string

Encryption key in string type with unlimited length. Agora recommends using a 32-byte key. If you do not set an encryption key or set it as null, you cannot use the built-in encryption, and the SDK returns -2.

encryptionMode?: EncryptionMode

The built-in encryption mode. See EncryptionMode. Agora recommends using Aes128Gcm2 or Aes256Gcm2 encrypted mode. These two modes support the use of salt for higher security.

Generated using TypeDoc