SimpleEncrypt class

Annotations
  • @JsonSerializable()

Constructors

SimpleEncrypt.new({required String key, required String data})
const
SimpleEncrypt.fromJson(Map<String, dynamic> json)
Json转SimpleEncrypt
factory

Properties

data String
final
hashCode int
The hash code for this object.
no setterinherited
key String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDecryptData<T>(String publicKey, OnFromJson<T> onFromJson) → T?
获取公钥解密之后的数据
getDecryptDataByPrivate<T>(String privateKey, OnFromJson<T> onFromJson) → T?
获取私钥解密之后的数据
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
SimpleEncrypt转 Json
toString() String
A string representation of this object.
inherited

Operators

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