EasySecurity class
加密解密
Constructors
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(
dynamic data, String? pwd) → EasyPacket? - 将收到的数据进行解密,采用随机生成iv和key的AES解密算法(CBC、Pkcs7)
-
encrypt(
EasyPacket data, String? pwd, bool binary) → dynamic - 将数据包进行加密,采用随机生成iv和key的AES加密算法(CBC、Pkcs7)
-
getMd5(
String data) → String - 计算md5编码
Constants
- uuid → const Uuid
- uuid生成器