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

std/hash/sha256.ts>Sha256

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

Constructors

new
Sha256(is224?, sharedMemory?)

Methods

protected
finalize(): void
protected
hash(): void
protected
init(is224: boolean, sharedMemory: boolean): void
array(): number[]

Return hash in integer array.

arrayBuffer(): ArrayBuffer

Return hash in ArrayBuffer.

digest(): number[]

Return hash in integer array.

hex(): string

Return hash in hex string.

toString(): string

Return hash in hex string.

update(message: Message): this

Update hash