utils
Class Hash

java.lang.Object
  extended by utils.Hash

public class Hash
extends java.lang.Object

Hash utils


Constructor Summary
Hash()
           
 
Method Summary
static java.lang.String MD5(java.lang.String text)
          md5 input string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hash

public Hash()
Method Detail

MD5

public static java.lang.String MD5(java.lang.String text)
                            throws java.security.NoSuchAlgorithmException,
                                   java.io.UnsupportedEncodingException
md5 input string

Parameters:
text - string for hashing
Returns:
hash of input string
Throws:
java.security.NoSuchAlgorithmException - if algorithm is not found
java.io.UnsupportedEncodingException - encoding exception
See Also:
MessageDigest