public String getMD5(String yourString){
//        yourString = "123456789";
		if (yourString != null) {
			byte[] bytesOfMessage = yourString.getBytes();

			try {
				MessageDigest md = MessageDigest.getInstance("MD5");
				byte[] thedigest = md.digest(bytesOfMessage);

				StringBuffer hexString = new StringBuffer();
				for (byte aThedigest : thedigest) {
					String hex = Integer.toHexString(0xff & aThedigest);
					if (hex.length() == 1) hexString.append('0');
					hexString.append(hex);
				}
				logger.info("Digest(in hex format):: " + hexString.toString());
				return hexString.toString();
			} catch (NoSuchAlgorithmException e) {
				e.printStackTrace();
				return "";
			}
		} else {
			return "";
		}
	}