paynet.crypto
Class TripleDES

java.lang.Object
  extended by paynet.crypto.TripleDES

public class TripleDES
extends java.lang.Object

TripleDES

This class encrypts and decrypts using Triple-DES encryption.

Version:
Sep 2007
Author:
Clay Morgan

Constructor Summary
TripleDES()
           
 
Method Summary
static byte[] encrypt(java.lang.String input, core.diag.ITrace trace)
          Encrypt
static javax.crypto.SecretKey getSecretKey()
          Generate a secret key
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleDES

public TripleDES()
Method Detail

getSecretKey

public static javax.crypto.SecretKey getSecretKey()
                                           throws CryptoException
Generate a secret key

Throws:
CryptoException

encrypt

public static byte[] encrypt(java.lang.String input,
                             core.diag.ITrace trace)
                      throws CryptoException
Encrypt

Throws:
CryptoException