Code example for MessageDigest

Methods: digest

0
	public void append(byte[] buffer) { 
		digest.update(buffer); 
	} 
	 
	public byte[] getValue() { 
		if (value==null) value=digest.digest(); 
		return value; 
	} 
	 
	public String getValueAsHex() { 
		return Hex.encodeHexString(getValue()); 
	} 
}