class IoUtils {

  public static String getChecksumAsString(final InputStream in)
      throws IOException, NoSuchAlgorithmException {
    final byte[] bytes = getChecksum(in);
    return BaseEncoding.base64().encode(bytes);
  }

}