EncryptionMode

The built-in encryption mode.

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

Enumerator

aes128Xts
1: 128-bit AES encryption, XTS mode.
aes128Ecb
2: 128-bit AES encryption, ECB mode.
aes256Xts
3: 256-bit AES encryption, XTS mode.
sm4128Ecb
4: 128-bit SM4 encryption, ECB mode.
aes128Gcm
5: 128-bit AES encryption, GCM mode.
aes256Gcm
6: 256-bit AES encryption, GCM mode.
aes128Gcm2
7: (Default) 128-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
aes256Gcm2
8: 256-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).
modeEnd
Enumerator boundary.