com.nimkathana.swx.xmlrpc.crypt
Class Blowfish

java.lang.Object
  extended bycom.nimkathana.swx.xmlrpc.crypt.Blowfish

public class Blowfish
extends java.lang.Object

Provides encryption via the Blowfish algorithm for SecureXmlRpcClient

Version:
April 2004
Author:
Maintained by Nimkathana (www.nimkathana.com), Original by IOP GmbH (www.iop.de)

Constructor Summary
Blowfish(byte[] key)
           
 
Method Summary
 java.lang.String decrypt(java.lang.String value)
          Decrypts the given String via the Blowfish algorithm
 java.lang.String encrypt(java.lang.String value)
          Encrypts the given String with the Blowfish algorithm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blowfish

public Blowfish(byte[] key)
Parameters:
key - key material, up to superwaba.ext.xplat.util.crypto.BlowfishECB.MAXKEYLENGTH bytes
Method Detail

encrypt

public java.lang.String encrypt(java.lang.String value)
Encrypts the given String with the Blowfish algorithm

Parameters:
value - The String to encrypt
Returns:
An encrypted version of value

decrypt

public java.lang.String decrypt(java.lang.String value)
Decrypts the given String via the Blowfish algorithm

Parameters:
value - The String to decrypt
Returns:
A decrypted version of value


Copyright © 2004 Nimkathana Corp. All Rights Reserved.