org.deltava.crypt
Class BlowfishEncryptor

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

public final class BlowfishEncryptor
extends SecretKeyEncryptor

A class to encrypt/decrypt data using Blowfish

Since:
1.0
Version:
1.0
Author:
Luke

Constructor Summary
BlowfishEncryptor(byte[] keyData)
          Create a new Blowifhs encryptor given an arbitrary key.
BlowfishEncryptor(String keyData)
          Create a new Blowfish 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

BlowfishEncryptor

public BlowfishEncryptor(byte[] keyData)
Create a new Blowifhs encryptor given an arbitrary key.

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

BlowfishEncryptor

public BlowfishEncryptor(String keyData)
Create a new Blowfish encryptor given an arbitrary key string.

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


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