org.openmobileis.database.fastobjectdb.db.crypto
Class AcmeBlowfishCypher

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.crypto.AcmeBlowfishCypher
All Implemented Interfaces:
FODBCypher, java.io.Serializable

public final class AcmeBlowfishCypher
extends java.lang.Object
implements FODBCypher

Blowfish cypher use to encrypt a collection object data.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu
See Also:
Serialized Form

Constructor Summary
AcmeBlowfishCypher()
           
AcmeBlowfishCypher(java.lang.String key)
           
 
Method Summary
 byte[] decryptObject(byte[] object)
           
 byte[] encryptObject(byte[] object)
           
static void main(java.lang.String[] args)
           
 void setKey(byte[] key)
           
 void setKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcmeBlowfishCypher

public AcmeBlowfishCypher()

AcmeBlowfishCypher

public AcmeBlowfishCypher(java.lang.String key)
Method Detail

encryptObject

public byte[] encryptObject(byte[] object)
                     throws java.io.IOException
Specified by:
encryptObject in interface FODBCypher
Throws:
java.io.IOException

decryptObject

public byte[] decryptObject(byte[] object)
                     throws java.io.IOException
Specified by:
decryptObject in interface FODBCypher
Throws:
java.io.IOException

setKey

public void setKey(byte[] key)
Specified by:
setKey in interface FODBCypher

setKey

public void setKey(java.lang.String key)

main

public static void main(java.lang.String[] args)


Copyright 2005 e-Care. All Rights Reserved.