public class StandardEncrypter extends java.lang.Object implements IEncrypter
构造器和说明 |
---|
StandardEncrypter(char[] password,
int crc) |
限定符和类型 | 方法和说明 |
---|---|
protected byte |
encryptByte(byte val) |
int |
encryptData(byte[] buff) |
int |
encryptData(byte[] buff,
int start,
int len) |
protected byte[] |
generateRandomBytes(int size) |
byte[] |
getHeaderBytes() |
public StandardEncrypter(char[] password, int crc) throws ZipException
ZipException
public int encryptData(byte[] buff) throws ZipException
encryptData
在接口中 IEncrypter
ZipException
public int encryptData(byte[] buff, int start, int len) throws ZipException
encryptData
在接口中 IEncrypter
ZipException
protected byte encryptByte(byte val)
protected byte[] generateRandomBytes(int size) throws ZipException
ZipException
public byte[] getHeaderBytes()