Code example for MessageDigest

Methods: reset

	 * @throws NoSuchAlgorithmException  
	public MD5Hash() throws NoSuchAlgorithmException 
		md = MessageDigest.getInstance("MD5");
	 * Gets 32 character MD5 Hash String for the given key. 
	 * @param key String for which Hash code is to be computed. 
	 * @return String representing MD5 Hash code. 
	public String getStringHash(String key)
		String source = key;
		digest = md.digest();
		bigInt = new BigInteger(1,digest);
		hash = bigInt.toString(16);
Stop searching for code, let great code find you!  Add Codota to your java IDE