public class DesCipher extends Object
| Constructor and Description |
|---|
DesCipher(byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt(byte[] cipherText,
int cipherOff,
byte[] clearText,
int clearOff) |
void |
encrypt(byte[] clearText,
int clearOff,
byte[] cipherText,
int cipherOff) |
void |
setKey(byte[] key) |
static void |
spreadIntsToBytes(int[] inInts,
int inOff,
byte[] outBytes,
int outOff,
int intLen) |
static void |
squashBytesToInts(byte[] inBytes,
int inOff,
int[] outInts,
int outOff,
int intLen) |
public void setKey(byte[] key)
public void encrypt(byte[] clearText,
int clearOff,
byte[] cipherText,
int cipherOff)
public void decrypt(byte[] cipherText,
int cipherOff,
byte[] clearText,
int clearOff)
public static void squashBytesToInts(byte[] inBytes,
int inOff,
int[] outInts,
int outOff,
int intLen)
public static void spreadIntsToBytes(int[] inInts,
int inOff,
byte[] outBytes,
int outOff,
int intLen)
Copyright © 2019. All rights reserved.