|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsymmetric.OneTimePad
public class OneTimePad
Constructor Summary | |
---|---|
OneTimePad(int size)
Creates a new One Time Pad |
Method Summary | |
---|---|
byte[] |
crypt(byte[] seq)
Encrypts or Decrypts a byte array by using XOR |
byte[] |
getKey()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneTimePad(int size)
size
- the size of the One Time PadMethod Detail |
---|
public byte[] crypt(byte[] seq)
seq
- the byte array to encode/decode
public byte[] getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |