EncryptionMode enum Null safety

加密模式。

Constants

AES128ECB → const EncryptionMode

128 位 AES 加密,ECB 模式。

@JsonValue(2)
const EncryptionMode(2)
AES128GCM → const EncryptionMode

128 位 AES 加密, GCM 模式。

@JsonValue(5)
const EncryptionMode(5)
AES128GCM2 → const EncryptionMode

(默认)128 位 AES 加密,GCM 模式。相比于 AES128GCM 加密模式,AES128GCM2 加密模式安全性更高且需要设置盐 (encryptionKdfSalt)。

@JsonValue(7)
const EncryptionMode(7)
AES128XTS → const EncryptionMode

(默认)128 位 AES 加密,XTS 模式。

@JsonValue(1)
const EncryptionMode(1)
AES256GCM → const EncryptionMode

256 位 AES 加密, GCM 模式。

@JsonValue(6)
const EncryptionMode(6)
AES256GCM2 → const EncryptionMode

256 位 AES 加密,GCM 模式。相比于 AES256GCM 加密模式,AES256GCM2 加密模式安全性更高且需要设置盐 (encryptionKdfSalt)。

@JsonValue(8)
const EncryptionMode(8)
AES256XTS → const EncryptionMode

256 位 AES 加密,XTS 模式。

@JsonValue(3)
const EncryptionMode(3)
None → const EncryptionMode

Deprecated 该模式已废弃。

@JsonValue(0)
const EncryptionMode(0)
values → const List<EncryptionMode>

A constant List of the values in this enum, in order of their declaration.

const List<EncryptionMode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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