Code example for Mac

Methods: init

0
		return mac.doFinal(salt);
	} 
	 
	public void init(byte[] password) {
		try { 
			mac.init(new SecretKeySpec(password, algorithm));
			this.initialized = true;
		} 
		 
		catch (InvalidKeyException e) {
			e.printStackTrace();
		} 
	} 
	 
	@Override 
	public void reset() { 
		mac.reset();
	} 
	 
	@Override 
	public String getAlgorithm() {