method SubtleCrypto.encrypt Private 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>