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
Annotations
  • @JsonEnum(alwaysCreate: true)

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).

modeEnd → const EncryptionMode

Enumerator boundary.

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.