org.davesag.generica.util
Class Crypto

java.lang.Object
  extended byorg.davesag.generica.util.Crypto

public class Crypto
extends Object

The crypto utils provide simple methods for generating MD5 hashes (using sun's standard MD5 algorithm) and for verifying a supplied key against a raw key.

Since:
Generica 1.0
Version:
CVS Revision $Id: Crypto.java,v 1.5 2004/03/30 13:00:43 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Constructor Summary
Crypto()
           
 
Method Summary
static String md5(String in)
          a convenience method to one way encrypt a string using sun's MD5 algorithm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crypto

public Crypto()
Method Detail

md5

public static String md5(String in)
a convenience method to one way encrypt a string using sun's MD5 algorithm

Parameters:
in - The string to encrypt.
Returns:
the MD5 hash of the string.
Throws:
RuntimeException - if we can not find the MD5 algorithm.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.