// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.

export type Message = string | ArrayBuffer;
export type OutputFormat = "hex" | "base64";

export interface Hasher {
  update(data: Message): this;
  digest(): ArrayBuffer;
  toString(format?: OutputFormat): string;
}

// denoCacheMetadata={"headers":{"strict-transport-security":"max-age=63072000; includeSubDomains; preload","vary":"Accept-Encoding, Origin","via":"http/2 edgeproxy-h","referrer-policy":"strict-origin-when-cross-origin","x-amz-cf-id":"4VzQjJGIEWdqiEjhMF74GJSKEMkgRTHNzPIjkcAJyl6PVV-MZxzj0w==","x-amz-cf-pop":"LAX53-P1","accept-ranges":"bytes","cross-origin-embedder-policy":"same-origin","cross-origin-resource-policy":"same-origin","server":"deno/gcp-us-west2","x-cache":"Hit from cloudfront","cache-control":"public, max-age=31536000, immutable","x-content-type-options":"nosniff","x-frame-options":"DENY","cross-origin-opener-policy":"same-origin","last-modified":"Sun, 21 Mar 2021 14:06:15 GMT","content-security-policy":"default-src 'none'; style-src 'unsafe-inline'; sandbox","x-amz-replication-status":"COMPLETED","x-amz-version-id":"QIV46AxWfkDq0q1dOm5BVoNvz5qb8QzU","age":"25159249","content-length":"293","content-type":"application/typescript; charset=utf-8","date":"Fri, 13 Dec 2024 11:06:17 GMT","access-control-allow-origin":"*","server-timing":"fetchSource;dur=6","etag":"\"0c167e12b5c9d79f7a73dba33dca4a55\""},"url":"https://deno.land/std@0.91.0/hash/hasher.ts","time":1759247225}