EncryptUtil class

md5 base64 sha1 var sha1Str = hex.encode(sha1.convert(utf8.encode(data)).bytes);

Constructors

EncryptUtil()

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

aesDecrypt(dynamic encrypted, String keyStr, {required String ivStr}) → dynamic
aesEncrypt(String plainStr, String keyStr, {required String ivStr}) → dynamic
AES加密 ivStr 偏移量 ecb 模式不需要 http://tool.chacuo.net/cryptaes
base64Decode(String data) String
base64DecodeFile(String base64Str, File file) Future<File>
base64 转存文件
base64Encode(String data) String
字符串转 base64 编码
base64EncodeFile(File file) Future<String>
文件转 base64
md5Encode(String data) String
md5File(File file) String
md5FileAsync(File file) Future<String>