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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardEncrypter
public StandardEncrypter(char[] password,
int crc)
throws ZipException
- Throws:
ZipException
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.