deno.com
method webcrypto.SubtleCrypto.encrypt
#SubtleCrypto.encrypt(): Promise<ArrayBuffer>

Using the method and parameters specified by algorithm and the keying material provided by key, subtle.encrypt() attempts to encipher data. If successful, the returned promise is resolved with an <ArrayBuffer> containing the encrypted result.

The algorithms currently supported include:

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

Parameters #

Return Type #

Promise<ArrayBuffer>