Package net.lingala.zip4j.crypto
Class StandardEncrypter
- java.lang.Object
-
- net.lingala.zip4j.crypto.StandardEncrypter
-
- All Implemented Interfaces:
IEncrypter
public class StandardEncrypter extends Object implements IEncrypter
-
-
Constructor Summary
Constructors Constructor Description StandardEncrypter(char[] password, int crc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byteencryptByte(byte val)intencryptData(byte[] buff)intencryptData(byte[] buff, int start, int len)protected byte[]generateRandomBytes(int size)byte[]getHeaderBytes()
-
-
-
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:
encryptDatain interfaceIEncrypter- Throws:
ZipException
-
encryptData
public int encryptData(byte[] buff, int start, int len) throws ZipException- Specified by:
encryptDatain interfaceIEncrypter- Throws:
ZipException
-
encryptByte
protected byte encryptByte(byte val)
-
generateRandomBytes
protected byte[] generateRandomBytes(int size) throws ZipException- Throws:
ZipException
-
getHeaderBytes
public byte[] getHeaderBytes()
-
-