|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Properties | |
| AgoraEncryptionMode | encryptionMode |
| NSString *_Nullable | encryptionKey |
| NSData *_Nullable | encryptionKdfSalt |
| BOOL | datastreamEncryptionEnabled |
|
readwritenonatomicassign |
The built-in encryption mode. See AgoraEncryptionMode. Agora recommends using AgoraEncryptionModeAES128GCM2 or AgoraEncryptionModeAES256GCM2 encrypted mode. These two modes support the use of salt for higher security.
|
readwritenonatomiccopy |
Encryption key in string type with unlimited length. Agora recommends using a 32-byte key.
nil, you cannot use the built-in encryption, and the SDK returns -2.
|
readwritenonatomicstrong |
Salt, 32 bytes in length. Agora recommends that you use OpenSSL to generate salt on the server side. See Media Stream Encryption for details.
AgoraEncryptionModeAES128GCM2 or AgoraEncryptionModeAES256GCM2 encrypted mode. In this case, ensure that this parameter is not 0.
|
readwritenonatomicassign |
Whether to enable data stream encryption:
YES: Enable data stream encryption.NO: (Default) Disable data stream encryption.