Using the method and parameters specified by algorithm and the keying material provided by key, this method attempts to encipher data. If successful, the returned promise is resolved with an <ArrayBuffer> containing the encrypted result.
The algorithms currently supported include:
'AES-CBC''AES-CTR''AES-GCM''AES-OCB''ChaCha20-Poly1305''RSA-OAEP'