org.jgroups.util
Class HashUtils

java.lang.Object
  extended by org.jgroups.util.HashUtils

public class HashUtils
extends java.lang.Object

Helper class for performing some common hashing methods

Author:
Chris Mills

Constructor Summary
HashUtils()
           
 
Method Summary
static java.lang.String md5(java.lang.String source)
          Converts a java.lang.String in to a MD5 hashed String
static java.lang.String sha(java.lang.String source)
          Converts a java.lang.String in to a SHA hashed String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashUtils

public HashUtils()
Method Detail

md5

public static java.lang.String md5(java.lang.String source)
Converts a java.lang.String in to a MD5 hashed String

Parameters:
source - the source String
Returns:
the MD5 hashed version of the string

sha

public static java.lang.String sha(java.lang.String source)
Converts a java.lang.String in to a SHA hashed String

Parameters:
source - the source String
Returns:
the MD5 hashed version of the string


Copyright ? 1998-2006 Bela Ban. All Rights Reserved.