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

x/deno/std/ws/sha1.ts>Sha1

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Sha1
import { Sha1 } from "https://deno.land/x/deno@v0.28.0/std/ws/sha1.ts";

Constructors

new
Sha1(sharedMemory?)

Properties

private
_block: number
private
_blocks: Uint32Array
private
_bytes: number
private
_finalized: boolean
private
_h0: number
private
_h1: number
private
_h2: number
private
_h3: number
private
_h4: number
private
_hashed: boolean
private
_hBytes: number
private
_lastByteIndex: number
private
_start: number

Methods

array(): number[]
arrayBuffer(): ArrayBuffer
digest(): number[]
finalize(): void
hash(): void
hex(): string
toString(): string
update(data: string | ArrayBuffer | ArrayBufferView): void