You will see a lot of crazy shit when searching for this. I you want something simple, get this function to get md5 from string in java:

	static String md5(String text)
	{
		try
		{
			MessageDigest m=MessageDigest.getInstance("MD5");
			m.update(text.getBytes(),0,text.length());
			return new BigInteger(1,m.digest()).toString(16);			
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		return "";		
	}

Thanks for visiting