method webcrypto.SubtleCrypto.encrypt
Usage in Deno
```typescript import { type webcrypto } from "node:node__crypto.d.ts"; ```
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 `` containing the encrypted result.
The algorithms currently supported include:
- `'RSA-OAEP'`
- `'AES-CTR'`
- `'AES-CBC'`
- `'AES-GCM'`
Promise<ArrayBuffer>