SSF.Util.Random
Class MD5

java.lang.Object
  |
  +--SSF.Util.Random.MD5

public final class MD5
extends java.lang.Object

A class that implements the MD5 secure hash function. The lack of "unsigned" in java makes implementing md5 somewhat miserable. License: LGPL


Constructor Summary
MD5()
           
 
Method Summary
static byte[] encode(byte[] msg)
          Computes the MD5 of the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5

public MD5()
Method Detail

encode

public static byte[] encode(byte[] msg)
Computes the MD5 of the input.

Parameters:
msg - the message to be encoded
Returns:
the MD5 of msg. Note that, per the MD5 standard, the result is returned least significant byte first, while many MD5 applications use the more conventional most significant byte first.