zip4j 2.0压缩 加密压缩

https://github.com/srikanth-lingala/zip4j

 

ZipParameters zipParameters = new ZipParameters();
zipParameters.setEncryptFiles(true);
zipParameters.setEncryptionMethod(EncryptionMethod.ZIP_STANDARD);

   List<File> filesToAdd = Arrays.asList(
       new File("somefile"),
       new File("someotherfile")
   );

ZipFile zipFile = new ZipFile("E:/filename".zip", "password".toCharArray());
zipFile.addFiles(filesToAdd, zipParameters);

上一篇:002_Python多线程相当于单核多线程的论证


下一篇:Python Day 35