Code example for NoSuchAlgorithmException

Methods: printStackTrace

0
		MessageDigest m = null;
		String result = "";
		try { 
			m = MessageDigest.getInstance("MD5");
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		} 
		m.update(pwd.getBytes(), 0, pwd.length());
		result = new BigInteger(1, m.digest()).toString(16);
		return result;
	} 
	 
	/** check if directory exists */ 
	public static void checkDirAvailable(String strDirectoy) {
		try { 
			File dir = new File(strDirectoy);
			if (!dir.exists()) {
 
				// Create one directory 
				boolean success = (new File(strDirectoy)).mkdir();
				if (success) {