EncryptionMode enum

The built-in encryption mode. Agora recommends using AES128GCM2 or AES256GCM2 encrypted mode. These two modes support the use of salt for higher security.

Inheritance
Available extensions

Values

AES128XTS → const EncryptionMode

1: 128-bit AES encryption, XTS mode.

AES128ECB → const EncryptionMode

2: 128-bit AES encryption, ECB mode.

AES256XTS → const EncryptionMode

3: 256-bit AES encryption, XTS mode.

SM4128ECB → const EncryptionMode

4: 128-bit SM4 encryption, ECB mode.

AES128GCM → const EncryptionMode

5: 128-bit AES encryption, GCM mode.

AES256GCM → const EncryptionMode

6: 256-bit AES encryption, GCM mode.

AES128GCM2 → const EncryptionMode

7: (Default) 128-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).

AES256GCM2 → const EncryptionMode

8: 256-bit AES encryption, GCM mode. This encryption mode requires the setting of salt (encryptionKdfSalt).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<EncryptionMode>
A constant List of the values in this enum, in order of their declaration.