Skip to main content
Module

x/911/src/hash.ts

Opinionated collection of helper tools. Assembled with Deno in mind.
Go to Latest
import * as 911 from "https://deno.land/x/911@0.1.1/src/hash.ts";

Variables

Convert a binary ArrayBuffer or Uint8Array to a hex string.

Create a new TextDecoder instance.

Create a new TextEncoder instance.

Generates a UUIDv4 string using the builtin crypto module.

Functions

Generate a hash of a dataset using the specified crypto algorithm.

Generate a deterministic ETag for a given dataset.

Generate a deterministic ETag for a given dataset.

Shorthand for computeHash(data, "SHA-1").

Shorthand for computeHash(data, "SHA-256").

Shorthand for computeHash(data, "SHA-512").