AesEnvelope class

AES-CBC + PKCS7 信封,与后端 gochat-aes-v1 对齐。

使用 cryptography;Flutter 宿主依赖 cryptography_flutter 时走平台加速。 无 MAC(信封仅为 {iv,data})。

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Methods

decrypt(Map<String, dynamic> envelope, String aesKey) → Future<String>
encrypt(String plain, String aesKey) → Future<Map<String, String>>
looksLikeEnvelope(Map data) → bool