edu.jhu.tmaj.util.crypt
Class StringDigest

java.lang.Object
  extended by edu.jhu.tmaj.util.crypt.StringDigest

public final class StringDigest
extends java.lang.Object

Utility for digesting strings using a one way hash algorithm


Constructor Summary
StringDigest()
           
 
Method Summary
static java.lang.String digest(java.lang.String s)
          Returns a one-way hash digest of the specified string.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDigest

public StringDigest()
Method Detail

digest

public static java.lang.String digest(java.lang.String s)
Returns a one-way hash digest of the specified string. Useful for storing passwords


main

public static void main(java.lang.String[] args)
                 throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException