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.


Constructor Index

 o Rot13Cipher()
Constructor.

Method Index

 o decrypt(byte)
Decrypt a byte.
 o decrypt(byte[], int, byte[], int, int)
Decrypt some bytes.
 o encrypt(byte)
Encrypt a byte.
 o encrypt(byte[], int, byte[], int, int)
Encrypt some bytes.
 o setKey(byte[])
Rot13 doesn't have a key, but we must define this routine anyway to avoid a compilation error.

Constructors

 o Rot13Cipher
 public Rot13Cipher()
Constructor.

Methods

 o 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
 o encrypt
 public byte encrypt(byte clearText)
Encrypt a byte.

Overrides:
encrypt in class StreamCipher
 o decrypt
 public byte decrypt(byte cipherText)
Decrypt a byte.

Overrides:
decrypt in class StreamCipher
 o encrypt
 public void encrypt(byte clearText[],
                     int clearOff,
                     byte cipherText[],
                     int cipherOff,
                     int len)
Encrypt some bytes.

Overrides:
encrypt in class StreamCipher
 o 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