net.lingala.zip4j.crypto
Class StandardEncrypter

java.lang.Object
  extended by net.lingala.zip4j.crypto.StandardEncrypter
All Implemented Interfaces:
IEncrypter

public class StandardEncrypter
extends Object
implements IEncrypter


Constructor Summary
StandardEncrypter(char[] password, int crc)
           
 
Method Summary
protected  byte encryptByte(byte val)
           
 int encryptData(byte[] buff)
           
 int encryptData(byte[] buff, int start, int len)
           
protected  byte[] generateRandomBytes(int size)
           
 byte[] getHeaderBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardEncrypter

public StandardEncrypter(char[] password,
                         int crc)
                  throws ZipException
Throws:
ZipException
Method Detail

encryptData

public int encryptData(byte[] buff)
                throws ZipException
Specified by:
encryptData in interface IEncrypter
Throws:
ZipException

encryptData

public int encryptData(byte[] buff,
                       int start,
                       int len)
                throws ZipException
Specified by:
encryptData in interface IEncrypter
Throws:
ZipException

encryptByte

protected byte encryptByte(byte val)

generateRandomBytes

protected byte[] generateRandomBytes(int size)
                              throws ZipException
Throws:
ZipException

getHeaderBytes

public byte[] getHeaderBytes()


Copyright © 2012. All Rights Reserved.