webcrypto.SubtleCrypto.verify - Node documentation
method webcrypto.SubtleCrypto.verify

Usage in Deno

import { type webcrypto } from "node:crypto";
SubtleCrypto.verify(): Promise<boolean>

Using the method and parameters given in algorithm and the keying material provided by key, subtle.verify() attempts to verify that signature is a valid cryptographic signature of data. The returned promise is resolved with either true or false.

The algorithms currently supported include:

  • 'RSASSA-PKCS1-v1_5'
  • 'RSA-PSS'
  • 'ECDSA'
  • 'Ed25519'
  • 'Ed448'
  • 'HMAC'

Parameters

Return Type

Promise<boolean>