Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/tools/deps/crypto.ts>StdSubtleCrypto

A better way to work with processes in Deno.
Very Popular
Go to Latest
interface StdSubtleCrypto
implements SubtleCrypto
import { type StdSubtleCrypto } from "https://deno.land/x/proc@0.21.0/tools/deps/crypto.ts";

Extensions to the web standard SubtleCrypto interface.

Methods

digest(algorithm: DigestAlgorithm, data: BufferSource | AsyncIterable<BufferSource> | Iterable<BufferSource>): Promise<ArrayBuffer>

Returns a new Promise object that will digest data using the specified AlgorithmIdentifier.

digestSync(algorithm: DigestAlgorithm, data: BufferSource | Iterable<BufferSource>): ArrayBuffer

Returns a ArrayBuffer with the result of digesting data using the specified AlgorithmIdentifier.

deprecated
timingSafeEqual(a: ArrayBufferLike | DataView, b: ArrayBufferLike | DataView): boolean