method SubtleCrypto.encrypt SubtleCrypto.encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams,key: CryptoKey,data: BufferSource,): Promise<ArrayBuffer> Parameters algorithm: AlgorithmIdentifier | RsaOaepParams | AesCbcParams | AesGcmParams | AesCtrParams key: CryptoKey data: BufferSource Return Type Promise<ArrayBuffer>