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

Usage in Deno

```typescript import { type webcrypto } from "node:node__crypto.d.ts"; ```
SubtleCrypto.decrypt(): Promise<ArrayBuffer>
Using the method and parameters specified in `algorithm` and the keying material provided by `key`, `subtle.decrypt()` attempts to decipher the provided `data`. If successful, the returned promise will be resolved with an `` containing the plaintext result. The algorithms currently supported include: - `'RSA-OAEP'` - `'AES-CTR'` - `'AES-CBC'` - `'AES-GCM'`

Parameters

Return Type

Promise<ArrayBuffer>