setEncryptionMode abstract method
- @Deprecated('Please use the enableEncryption method instead.')
- EncryptionMode encryptionMode
Sets the built-in encryption mode. The Agora SDK supports built-in encryption, which is set to the AES-128-GCM mode by default. The Agora SDK supports built-in encryption, which is set to the AES-128-XTS mode by default. Call this method to use other encryption modes. All users in the same channel must use the same encryption mode and secret. Refer to the information related to the AES encryption algorithm on the differences between the encryption modes. Deprecated: Please use the enableEncryption method instead. Before calling this method, please call setEncryptionSecret to enable the built-in encryption function.
Param encryptionMode
Encryption mode. "aes-128-xts": 128-bit AES encryption, XTS mode.
"aes-128-ecb": 128-bit AES encryption, ECB mode.
"aes-256-xts": 256-bit AES encryption, XTS mode.
"sm4-128-ecb": 128-bit SM4 encryption, ECB mode.
"aes-128-gcm": 128-bit AES encryption, GCM mode.
"aes-256-gcm": 256-bit AES encryption, GCM mode.
"": When this parameter is set as null, the encryption mode is set as "aes-128-gcm" by default.
"": When setting as NULL, the encryption mode is set as "aes-128-xts" by default.
Implementation
@Deprecated('Please use the enableEncryption method instead.')
Future<void> setEncryptionMode(EncryptionMode encryptionMode);