public static String getMD5Checksum(String str) throws IOException {

		InputStream is = new ByteArrayInputStream(str.getBytes());
		return getMD5Checksum(is);
	}
public static String getMD5Checksum ( String str ) throws IOException { InputStream is = new ByteArrayInputStream ( str . getBytes ( ) ) ; return getMD5Checksum ( is ) ; }
Returns the MD5 Checksum of the string passed in parameter

@param str
the string content

@return the Checksum of the input stream
@throws IOException
if an IO exception occurs