Package net.lingala.zip4j.crypto
Class StandardEncrypter
- java.lang.Object
-
- net.lingala.zip4j.crypto.StandardEncrypter
-
-
Constructor Summary
Constructors Constructor Description StandardEncrypter(char[] password, long key, boolean useUtf8ForPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte
encryptByte(byte val)
int
encryptData(byte[] buff)
int
encryptData(byte[] buff, int start, int len)
protected byte[]
generateRandomBytes()
byte[]
getHeaderBytes()
-
-
-
Constructor Detail
-
StandardEncrypter
public StandardEncrypter(char[] password, long key, boolean useUtf8ForPassword) throws ZipException
- Throws:
ZipException
-
-
Method Detail
-
encryptData
public int encryptData(byte[] buff) throws ZipException
- Specified by:
encryptData
in interfaceEncrypter
- Throws:
ZipException
-
encryptData
public int encryptData(byte[] buff, int start, int len) throws ZipException
- Specified by:
encryptData
in interfaceEncrypter
- Throws:
ZipException
-
encryptByte
protected byte encryptByte(byte val)
-
generateRandomBytes
protected byte[] generateRandomBytes()
-
getHeaderBytes
public byte[] getHeaderBytes()
-
-