Examples of AesZipFileDecrypter


Examples of com.zwl.util.zip.AesZipFileDecrypter

    boolean flag = false;

    if (key == null || "".equals(key)) {
      unZip(inFile, new File(outDir));
    } else {
      AesZipFileDecrypter zipFile = new AesZipFileDecrypter(new File(
          inFile));
      for (ExtZipEntry entry : zipFile.getEntryList()) {
        if (!ifSubDir) {
          String filename = entry.getName();
          String[] strArray = filename.split(File.separator
              + File.separator);
          if (strArray != null && strArray.length == 1) {
            zipFile.extractEntry(entry, new File(outDir
                + File.separator + entry.getName()), key);
          }
        } else {
          zipFile.extractEntry(entry, new File(outDir
              + File.separator + entry.getName()), key);
        }
      }
    }
    flag = true;
View Full Code Here

Examples of de.idyl.winzipaes.AesZipFileDecrypter

            if (!zipFile.exists()) {
                throw new IllegalStateException("File " + zipFile.getAbsolutePath() + " doesn't exists");
            }

            AESDecrypter decrypter = new AESDecrypterBC();
            this.decrypter = new AesZipFileDecrypter(zipFile, decrypter);
            this.password = password;
        } catch (IOException ioe) {
            throw new RuntimeException(ioe);
        }
        logger.infof("Importing from ZIP file %s", zipFile.getAbsolutePath());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.