net.charlesames.utility.hash
Class HashMethods

java.lang.Object
  extended by net.charlesames.utility.hash.HashMethods

public class HashMethods
extends java.lang.Object

One-way encryption methods.
from: http://www.informit.com/guides/content.aspx?g=java&seqNum=30

Author:
Steven Haines

Constructor Summary
HashMethods()
           
 
Method Summary
static java.lang.String md5(java.lang.String source)
          Message Digest (MD5)
static java.lang.String sha1(java.lang.String source)
          Secure Hash Standard (SHA-1)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMethods

public HashMethods()
Method Detail

md5

public static java.lang.String md5(java.lang.String source)
Message Digest (MD5)

Parameters:
source - plain text
Returns:
encrypted text

sha1

public static java.lang.String sha1(java.lang.String source)
Secure Hash Standard (SHA-1)

Parameters:
source - plain text
Returns:
encrypted text