brendan-duncan/archive

unzip the zip file with the password

ahmadkhedr opened this issue · 2 comments

I tried to unzip the zip file with the password, but an error occurred: "Value not in range: -12"

I got the same problem

Screen Shot 2021-10-22 at 6 24 21 PM

Here is my snipe code:
`

final directory = await getApplicationDocumentsDirectory();

// 'assets/offline/abc.zip'
ByteData _bytes = await rootBundle.load(assetPath);
final bytes = _bytes.buffer.asUint8List();

// Decode the Zip file
final archive = ZipDecoder().decodeBytes(bytes, verify: true, password: "123");

`

@megataps
you can try the solution in this issue:
#83 (comment)
it worked for me