Skip to main content
Module

std/crypto/mod.ts>KeyStack#verify

Deno standard library
Go to Latest
method KeyStack.prototype.verify
import { KeyStack } from "https://deno.land/std@0.158.0/crypto/mod.ts";

Given data and a digest, verify that one of the keys provided the constructor was used to generate the digest. Returns true if one of the keys was used, otherwise false.

Parameters

data: Data
digest: string

Returns

Promise<boolean>