org.jagatoo.util.strings
Class MD5Util

java.lang.Object
  extended by org.jagatoo.util.strings.MD5Util

public class MD5Util
extends java.lang.Object

Encrypts Strings using MD5.

Author:
Marvin Froehlich (aka Qudus)

Constructor Summary
MD5Util()
           
 
Method Summary
static java.lang.String md5(java.lang.String message)
          Encrypt the passed String using MD5.
static byte[] md5Bytes(java.lang.String message)
          Encrypt the passed String using MD5.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Util

public MD5Util()
Method Detail

md5

public static java.lang.String md5(java.lang.String message)
Encrypt the passed String using MD5.

Parameters:
message - the message to encrypt
Returns:
the MD5 hash.

md5Bytes

public static byte[] md5Bytes(java.lang.String message)
Encrypt the passed String using MD5.

Parameters:
message - the message to encrypt
Returns:
the MD5 hash as 16 bytes.