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
ZipExceptionpublic int encryptData(byte[] buff)
throws ZipException
encryptData 在接口中 IEncrypterZipExceptionpublic int encryptData(byte[] buff,
int start,
int len)
throws ZipException
encryptData 在接口中 IEncrypterZipExceptionprotected byte encryptByte(byte val)
protected byte[] generateRandomBytes(int size)
throws ZipException
ZipExceptionpublic byte[] getHeaderBytes()