Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/hash/_wasm/hash.ts>Hash

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Hash
implements Hasher
import { Hash } from "https://deno.land/std@0.160.0/hash/_wasm/hash.ts";

Constructors

new
Hash(algorithm: string)

Methods

digest(): ArrayBuffer

Returns final hash

toString(format?: OutputFormat): string

Returns hash as a string of given format

update(message: Message): this