code: public static String computeAttachmentHash(byte[] attachment) {
  
  		byte[] rawDigest = MESSAGE_DIGESTER.digest(attachment);
  
  		return Base64.encode(rawDigest);
  
  	}
docs: Computes the hash of an binary attachment.
  
  @return The SHA-1 hash value of the attachment byte array.