title: Validating password protected ZIP files
body: <p>I'm packing <code>ZIP</code> files using <a href="http://www.lingala.net/zip4j/" rel="nofollow noreferrer"><code>Zip4j</code></a>. Sometimes, the created <code>ZIP</code> file seems to be (uploaded) corrupted via <code>FTP</code> so I would like to validate it.</p>
  
  <p>The code snippets from <a href="https://stackoverflow.com/questions/2085637/how-to-check-if-a-generated-zip-file-is-corrupted">here</a> don't work because they cause an exception on password protected archives by default since the default <code>Java</code> <a href="https://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipFile.html" rel="nofollow noreferrer"><code>ZipFile</code></a> doesn't support password protections.</p>