org.deltava.crypt
Class DESEncryptor

java.lang.Object
  extended by org.deltava.crypt.SecretKeyEncryptor
      extended by org.deltava.crypt.DESEncryptor

public final class DESEncryptor
extends SecretKeyEncryptor

A class to encrypt/decrypt data using 3DES

Since:
1.0
Version:
1.0
Author:
Luke

Constructor Summary
DESEncryptor(byte[] keyData)
          Create a new 3DES encryptor given an arbitrary key.
DESEncryptor(String keyData)
          Create a new 3DES encryptor given an arbitrary key string.
 
Method Summary
 
Methods inherited from class org.deltava.crypt.SecretKeyEncryptor
decrypt, encrypt, getAlgorithm, initKey, setKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DESEncryptor

public DESEncryptor(byte[] keyData)
             throws CryptoException
Create a new 3DES encryptor given an arbitrary key.

Parameters:
keyData - the key data. Only the first 24 bytes are used
Throws:
CryptoException - if the encryptor cannot be initialized

DESEncryptor

public DESEncryptor(String keyData)
Create a new 3DES encryptor given an arbitrary key string.

Parameters:
keyData - the key string. Only the first 24 characters are used
Throws:
CryptoException - if the encryptor cannot be initialized


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.