All Packages Class Hierarchy This Package Previous Next Index
Class Acme.Crypto.Rot13Cipher
java.lang.Object
|
+----Acme.Crypto.CryptoUtils
|
+----Acme.Crypto.Cipher
|
+----Acme.Crypto.StreamCipher
|
+----Acme.Crypto.Rot13Cipher
- public class Rot13Cipher
- extends StreamCipher
The rot13 trivial encryption method.
This is mainly for testing stream ciphers.
Fetch the software.
Fetch the entire Acme package.
-
Rot13Cipher()
- Constructor.
-
decrypt(byte)
- Decrypt a byte.
-
decrypt(byte[], int, byte[], int, int)
- Decrypt some bytes.
-
encrypt(byte)
- Encrypt a byte.
-
encrypt(byte[], int, byte[], int, int)
- Encrypt some bytes.
-
setKey(byte[])
- Rot13 doesn't have a key, but we must define this routine anyway
to avoid a compilation error.
Rot13Cipher
public Rot13Cipher()
- Constructor.
setKey
public void setKey(byte key[])
- Rot13 doesn't have a key, but we must define this routine anyway
to avoid a compilation error.
- Overrides:
- setKey in class Cipher
encrypt
public byte encrypt(byte clearText)
- Encrypt a byte.
- Overrides:
- encrypt in class StreamCipher
decrypt
public byte decrypt(byte cipherText)
- Decrypt a byte.
- Overrides:
- decrypt in class StreamCipher
encrypt
public void encrypt(byte clearText[],
int clearOff,
byte cipherText[],
int cipherOff,
int len)
- Encrypt some bytes.
- Overrides:
- encrypt in class StreamCipher
decrypt
public void decrypt(byte cipherText[],
int cipherOff,
byte clearText[],
int clearOff,
int len)
- Decrypt some bytes.
- Overrides:
- decrypt in class StreamCipher
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs