Class cryptiX.crypto.Rc4Cipher
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptiX.crypto.Rc4Cipher

java.lang.Object
   |
   +----cryptiX.crypto.CryptoUtils
           |
           +----cryptiX.crypto.Cipher
                   |
                   +----cryptiX.crypto.StreamCipher
                           |
                           +----cryptiX.crypto.Rc4Cipher

public class Rc4Cipher
extends StreamCipher

Constructor Index

 o Rc4Cipher(byte[])
 o Rc4Cipher(String)

Method Index

 o decrypt(byte)
 o decrypt(byte[])
WP Decrypt an array of bytes.
 o decrypt(byte[], int, byte[], int, int)
 o encrypt(byte)
 o encrypt(byte[])
WP Encrypt an array of bytes.
 o encrypt(byte[], int, byte[], int, int)
 o setKey(byte[])

Constructors

 o Rc4Cipher
  public Rc4Cipher(String keyStr)
 o Rc4Cipher
  public Rc4Cipher(byte key[])

Methods

 o setKey
  public void setKey(byte key[])
Overrides:
setKey in class Cipher
 o encrypt
  public byte encrypt(byte clearText)
Overrides:
encrypt in class StreamCipher
 o decrypt
  public byte decrypt(byte cipherText)
Overrides:
decrypt in class StreamCipher
 o encrypt
  public void encrypt(byte clearText[],
                      int clearOff,
                      byte cipherText[],
                      int cipherOff,
                      int len)
Overrides:
encrypt in class StreamCipher
 o encrypt
  public byte[] encrypt(byte clearText[])
WP Encrypt an array of bytes.
 o decrypt
  public void decrypt(byte cipherText[],
                      int cipherOff,
                      byte clearText[],
                      int clearOff,
                      int len)
Overrides:
decrypt in class StreamCipher
 o decrypt
  public byte[] decrypt(byte cipherText[])
WP Decrypt an array of bytes.

All Packages  Class Hierarchy  This Package  Previous  Next  Index