Skip to main content
webcrypto.SubtleCrypto.decrypt - crypto - Node documentation
method webcrypto.SubtleCrypto.decrypt

Usage in Deno

import { type webcrypto } from "node:crypto";
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 <ArrayBuffer> containing the plaintext result.

The algorithms currently supported include:

  • 'RSA-OAEP'
  • 'AES-CTR'
  • 'AES-CBC'
  • 'AES-GCM'

Parameters

Return Type

Promise<ArrayBuffer>
Back to top