Code example for MessageDigest

Methods: update

0
		} 
	} 
	 
	public void append(String s) { 
		try { 
			digest.update(s.getBytes("UTF-16BE")); 
		} catch (UnsupportedEncodingException e) { 
			throw new RuntimeException("Could not get UTF-16BE character set", e); 
		} 
	} 
	 
	public void append(byte[] buffer) { 
		digest.update(buffer); 
	} 
	 
	public byte[] getValue() { 
		if (value==null) value=digest.digest(); 
		return value; 
	} 
	 
	public String getValueAsHex() {