Skip to main content
webcrypto.SubtleCrypto.verify - node__crypto.d.ts - Node documentation
method webcrypto.SubtleCrypto.verify

Usage in Deno

```typescript import { type webcrypto } from "node:node__crypto.d.ts"; ```
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>