Skip to main content

decrypt

method webcrypto.SubtleCrypto.decrypt
Jump to headingSubtleCrypto.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 Jump to heading

Return Type Jump to heading

Promise<ArrayBuffer>
Back to top