To improve data security, developers can encrypt users' media streams during the real-time engagement. Agora supports built-in encryption, and you can set the encryption mode and encryption secret.
The following diagram describes the encrypted data transmission process:
Before joining a channel, call
setEncryptionSecret to set the encryption mode and encryption secret.
Agora supports the following encryption modes:
aes-128-xts: 128-bit AES encryption, XTS mode.
aes-256-xts: 256-bit AES encryption, XTS mode.
aes-128-ecb: 128-bit AES encryption, ECB mode.