com.quadrique.jbuildingblocks.core.encryption
Class JbbDesCipher

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.encryption.JbbDesCipher

public class JbbDesCipher
extends Object

2-way encryption/decryption based on the DES cypher

Author:
dkumbham

Constructor Summary
JbbDesCipher(String passPhrase)
           
 
Method Summary
 String decrypt(String encryptedData)
           
 String encrypt(String data)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbbDesCipher

public JbbDesCipher(String passPhrase)
             throws Exception
Parameters:
passPhrase -
Throws:
Exception
Method Detail

encrypt

public String encrypt(String data)
               throws Exception
Parameters:
data -
Returns:
Throws:
Exception

decrypt

public String decrypt(String encryptedData)
               throws Exception
Parameters:
encryptedData -
Returns:
Throws:
Exception


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.