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 byteencryptByte(byte val) intencryptData(byte[] buff) intencryptData(byte[] buff, int start, int len) protected byte[]byte[]private voidinit(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:
encryptDatain interfaceEncrypter- Throws:
ZipException
-
encryptData
- Specified by:
encryptDatain interfaceEncrypter- Throws:
ZipException
-
encryptByte
protected byte encryptByte(byte val) -
generateRandomBytes
protected byte[] generateRandomBytes() -
getHeaderBytes
public byte[] getHeaderBytes()
-