code: public static String md5(Resource res) throws NoSuchAlgorithmException, IOException {
  	InputStream is = res.getInputStream();
  	try {
  	    return DigestUtils.md5Hex(is);
  	}
  	finally {
  	    IOUtil.closeEL(is);
  	}
      }
docs: MD5