Use [zip -q -r -D -m -P xxx] command to encrypt the zip package, which cannot be decrypted
chaoyang-zhou opened this issue · 0 comments
chaoyang-zhou commented
archive version: 3.3.6
flutter version 3.7.7
void unzipWith(Uint8List bytes) async {
var archive = ZipDecoder().decodeBytes(bytes, password: "xxx");
for (var file in archive) {
if (file.isFile) {
if (file.name == "config.ini") {
// file.content always [], empty list
var data = file.content as List<int>;
String content = utf8.decode(data);
Log.i(content);
}
}
}
}