public class CryptEngine extends Object
| Constructor and Description |
|---|
CryptEngine()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
decrypt(byte[] data,
int offset,
int length)
Decrypt given data
|
int |
encrypt(byte[] data,
int offset,
int length)
Encrypt given data
|
void |
updateKey(byte[] newKey)
Update the key for packet encryption/decryption with the Blowfish Cipher
|
public CryptEngine()
public void updateKey(byte[] newKey)
newKey - new Blowfish Keypublic boolean decrypt(byte[] data,
int offset,
int length)
data - byte array to be decryptedoffset - byte array offsetlength - byte array lengthpublic int encrypt(byte[] data,
int offset,
int length)
data - byte array to be encryptedoffset - byte array offsetlength - byte array lengthCopyright © 2014–2015. All rights reserved.