加群452892873 下载对应40课文件,运行方法,建好项目,直接替换lib目录
pubspec.yaml
crypto: ^2.1.
SignServices.dart
import 'dart:convert'; import 'package:crypto/crypto.dart'; class SignServices{
static getSign(){
Map addressListAttr={
"uid":'',
"age":,
"salt":'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' //私钥
};
List attrKeys=addressListAttr.keys.toList();
attrKeys.sort();
print(attrKeys);
String str='';
for(var i=;i<attrKeys.length;i++){
str+="${attrKeys[i]}${addressListAttr[attrKeys[i]]}";
}
print(str);
print(md5.convert(utf8.encode(str)));
}
}