public static String getMD5(String md5Salt) {
		try {
			MessageDigest md = MessageDigest.getInstance(MD5);
			byte[] array = md.digest(md5Salt.getBytes(UTF8));
			StringBuffer sb = new StringBuffer();
			for (int i = 0; i < array.length; ++i) {
				sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1, 3));
			}
			return sb.toString();
		} catch (java.security.NoSuchAlgorithmException e) {
			LOG.error(e.getMessage());
		} catch (UnsupportedEncodingException e) {
			LOG.error(e.getMessage());
		}
		return null;
	}
public static String getMD5 ( String md5Salt ) { try { MessageDigest md = MessageDigest . getInstance ( MD5 ) ; byte [ ] array = md . digest ( md5Salt . getBytes ( UTF8 ) ) ; StringBuffer sb = new StringBuffer ( ) ; for ( int i = 0 ; i < array . length ; ++ i ) { sb . append ( Integer . toHexString ( ( array [ i ] & 0xFF ) | 0x100 ) . substring ( 1 , 3 ) ) ; } return sb . toString ( ) ; } catch ( java . security . NoSuchAlgorithmException e ) { LOG . error ( e . getMessage ( ) ) ; } catch ( UnsupportedEncodingException e ) { LOG . error ( e . getMessage ( ) ) ; } return null ; }
generates the MD5 Hash value from given salt value

@param md5Salt - a {@link java.lang.String} object.
@return md5 hash value if success, <code>null</code> if exception/fails