Examples of initEncryptedEntry()


Examples of com.zwl.util.zip.impl.ExtZipEntry.initEncryptedEntry()

      zipEntry.setTime( ExtZipEntry.dosToJavaTime(dosTime) );
     
      if( cde.isEncrypted() ) {
        zipEntry.setMethod( cde.getActualCompressionMethod() );
        zipEntry.setOffset( (int)(cde.getLocalHeaderOffset() + cde.getLocalHeaderSize()) + cde.getCryptoHeaderLength() );
        zipEntry.initEncryptedEntry();
      } else {
        zipEntry.setMethod( ZipEntry.DEFLATED );
        zipEntry.setPrimaryCompressionMethod( ZipEntry.DEFLATED );
      }
View Full Code Here

Examples of com.zwl.util.zip.impl.ExtZipEntry.initEncryptedEntry()

    ExtZipEntry entry = new ExtZipEntry(zipEntry.getName());
    entry.setMethod(zipEntry.getMethod());
    entry.setSize(zipEntry.getSize());
    entry.setCompressedSize(zipEntry.getCompressedSize() + 28);
    entry.setTime(zipEntry.getTime());
    entry.initEncryptedEntry();

    zipOS.putNextEntry(entry);
    // ZIP-file data contains: 1. salt 2. pwVerification 3. encryptedContent 4. authenticationCode
    zipOS.writeBytes(aesEncrypter.getSalt());
    zipOS.writeBytes(aesEncrypter.getPwVerification());
View Full Code Here

Examples of com.zwl.util.zip.impl.ExtZipEntry.initEncryptedEntry()

    ExtZipEntry entry = new ExtZipEntry(name);
    entry.setMethod(ZipEntry.DEFLATED);
    entry.setSize(inputLen);
    entry.setCompressedSize(data.length + 28);
    entry.setTime((new java.util.Date()).getTime());
    entry.initEncryptedEntry();

    zipOS.putNextEntry(entry);
    // ZIP-file data contains: 1. salt 2. pwVerification 3. encryptedContent 4. authenticationCode
    zipOS.writeBytes(aesEncrypter.getSalt());
    zipOS.writeBytes(aesEncrypter.getPwVerification());
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.