Laazy
Class Hash

java.lang.Object
  extended by Laazy.Hash

public class Hash
extends java.lang.Object


Constructor Summary
Hash()
           
 
Method Summary
static java.lang.String compute(java.lang.String text, java.lang.String hash)
           
 
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

compute

public static java.lang.String compute(java.lang.String text,
                                       java.lang.String hash)
                                throws java.security.NoSuchAlgorithmException
Parameters:
text - to be hashed
hash - any hash supported in java (MD2, MD5, SHA-1, SHA-256, SHA-384, SHA-512)
Returns:
hexidecimal form of the specified hash of the text
Throws:
java.security.NoSuchAlgorithmException