How to password protect a zipped Excel file in Java?

后端 未结 3 525
说谎
说谎 2021-01-06 00:27

I have a question about password protecting an Excel file.

The situation is that, I have a zip file, that has an Excel file in it. I need to write a Java program, to

3条回答
  •  一向
    一向 (楼主)
    2021-01-06 01:18

    I think you should check out truezip (Truezip website). It provides read/write access to ZIP, JAR, EAR, WAR etc and supports appending to existing ZIP files.

    I suggest you create your zip file without the excel file in it, create your passworded excel file as directed in the link you provided and then use truezip to write this excel file to the archive. Hope this helps

提交回复
热议问题