|
PulpCore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpulpcore.util.crypt.ARC4
public class ARC4
An unofficial implementation of the ARC4 cipher algorithm.
| Constructor Summary | |
|---|---|
ARC4()
Constructs a new ARC4 object with a randomly generated encryption key. |
|
ARC4(byte[] key)
Constructs a new ARC4 object with the specified encryption key. |
|
| Method Summary | |
|---|---|
void |
crypt(byte[] data)
Crypts the data. |
void |
crypt(byte[] input,
byte[] output)
Crypts the data from the input array to the output array. |
void |
reset()
Resets the cipher to start encrypting a new stream of data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ARC4()
public ARC4(byte[] key)
key - the encryption key.| Method Detail |
|---|
public void reset()
public void crypt(byte[] data)
data - The data to crpyt.
public void crypt(byte[] input,
byte[] output)
input - The source data.output - The array to store the crpyted data, which must be as long as the input
data.
|
PulpCore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||