2: 128-bit AES encryption, ECB mode.
5: 128-bit AES encryption, GCM mode.
7: (Default) 128-bit AES encryption, GCM mode. This mode requires you to set the
salt (encryptionKdfSalt
).
1: 128-bit AES encryption, XTS mode.
6: 256-bit AES encryption, GCM mode.
8: 256-bit AES encryption, GCM mode. This mode requires you to set the salt
(encryptionKdfSalt
).
3: 256-bit AES encryption, XTS mode.
4: 128-bit SM4 encryption, ECB mode.
Encryption mode. Agora recommends using either the
AES_128_GCM2
orAES_256_GCM2
encryption mode, both of which support adding a salt and are more secure.