Package net.lingala.zip4j.crypto
Class StandardEncrypter
java.lang.Object
net.lingala.zip4j.crypto.StandardEncrypter
- All Implemented Interfaces:
Encrypter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte
encryptByte
(byte val) int
encryptData
(byte[] buff) int
encryptData
(byte[] buff, int start, int len) protected byte[]
byte[]
private void
init
(char[] password, long key, boolean useUtf8ForPassword)
-
Field Details
-
zipCryptoEngine
-
headerBytes
private byte[] headerBytes
-
-
Constructor Details
-
StandardEncrypter
- Throws:
ZipException
-
-
Method Details
-
init
- Throws:
ZipException
-
encryptData
- Specified by:
encryptData
in interfaceEncrypter
- Throws:
ZipException
-
encryptData
- Specified by:
encryptData
in interfaceEncrypter
- Throws:
ZipException
-
encryptByte
protected byte encryptByte(byte val) -
generateRandomBytes
protected byte[] generateRandomBytes() -
getHeaderBytes
public byte[] getHeaderBytes()
-