EncryptionMode

The built-in encryption mode.

Agora recommends using AES_128_GCM2 or AES_256_GCM2 encrypted mode. These two modes support the use of salt for higher security.

Enumerator

AES_128_XTS
1: 128-bit AES encryption, XTS mode.
AES_128_ECB
2: 128-bit AES encryption, ECB mode.
AES_256_XTS
3: 256-bit AES encryption, XTS mode.
SM4_128_ECB
4: 128-bit SM4 encryption, ECB mode.
AES_128_GCM
5: 128-bit AES encryption, GCM mode.
AES_256_GCM
6: 256-bit AES encryption, GCM mode.
AES_128_GCM2
7: (Default) 128-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
AES_256_GCM2
8: 256-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
MODE_END
Enumerator boundary.