it.gotoandplay.smartfoxserver.crypto
Class MD5

java.lang.Object
  extended by it.gotoandplay.smartfoxserver.crypto.MD5

public class MD5
extends java.lang.Object

This is a simple singleton utility class providing MD5 hashes


Method Summary
 java.lang.String getHash(java.lang.String s)
          Generate the md5 hash
static MD5 instance()
          Return the one and only instance of this class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static MD5 instance()
Return the one and only instance of this class

Returns:
the instance

getHash

public java.lang.String getHash(java.lang.String s)
Generate the md5 hash

Parameters:
s - a string
Returns:
a 32 character long string with the hex representation of the hash.