> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# aesEncryptCTR

> Function aesEncryptCTR in the Baileys API.

> **aesEncryptCTR**(`plaintext`, `key`, `iv`): `Buffer`\<`ArrayBuffer`>

Defined in: [src/Utils/crypto.ts:75](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/crypto.ts#L75)

## Parameters

### plaintext

`Uint8Array`

### key

`Uint8Array`

### iv

`Uint8Array`

## Returns

`Buffer`\<`ArrayBuffer`>
