All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Crypto.Des3Cipher

java.lang.Object
   |
   +----Acme.Crypto.CryptoUtils
           |
           +----Acme.Crypto.Cipher
                   |
                   +----Acme.Crypto.BlockCipher
                           |
                           +----Acme.Crypto.Des3Cipher

public class Des3Cipher
extends BlockCipher
The triple-DES encryption method.

This is a fairly standard way of increasing the security of DES. You run each block through DES three times, first encrypting with key A, then decrypting with key B, then encrypting again with key A again.

Fetch the software.
Fetch the entire Acme package.

See Also:
DesCipher, EncryptedOutputStream, EncryptedInputStream

Constructor Index

 o Des3Cipher(byte[])
Constructor, byte-array key.
 o Des3Cipher(String)
Constructor, string key.

Method Index

 o decrypt(byte[], int, byte[], int)
Decrypt a block of eight bytes.
 o encrypt(byte[], int, byte[], int)
Encrypt a block of eight bytes.
 o setKey(byte[])
Set the key.

Constructors

 o Des3Cipher
 public Des3Cipher(String keyStr)
Constructor, string key.

 o Des3Cipher
 public Des3Cipher(byte key[])
Constructor, byte-array key.

Methods

 o setKey
 public void setKey(byte key[])
Set the key.

Overrides:
setKey in class Cipher
 o encrypt
 public void encrypt(byte clearText[],
                     int clearOff,
                     byte cipherText[],
                     int cipherOff)
Encrypt a block of eight bytes.

Overrides:
encrypt in class BlockCipher
 o decrypt
 public void decrypt(byte cipherText[],
                     int cipherOff,
                     byte clearText[],
                     int clearOff)
Decrypt a block of eight bytes.

Overrides:
decrypt in class BlockCipher

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs