org.jwall.web.audit.util
Class MD5

java.lang.Object
  extended by org.jwall.web.audit.util.MD5

public class MD5
extends Object

This is a small helper-class that wraps around the java md5 message-digest and computes the md5 hex-string of a given input string. It is basically just a wrapper and uses the MessageDigest class of the Java runtime library.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
MD5()
           
 
Method Summary
static String md5(byte[] data)
          This method will simply return the computed MD5 sum of the given input data.
static String md5(Serializable object)
           
static String md5(String message)
          This method will simply return the computed MD5 sum of the given input string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Method Detail

md5

public static String md5(String message)
This method will simply return the computed MD5 sum of the given input string. The sum is returned in hex notation.

This is just a convenience method. Calls this method are delegated to md5( byte[] data).

Parameters:
message - The message to create the digest from.
Returns:
The hex string of the message digest.

md5

public static String md5(byte[] data)
This method will simply return the computed MD5 sum of the given input data. The sum is returned in hex notation.

Parameters:
message - The message to create the digest from.
Returns:
The hex string of the message digest.

md5

public static String md5(Serializable object)


Copyright © 2012 jwall.org. All Rights Reserved.