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

# aesEncrypWithIV

> Function aesEncrypWithIV in the Baileys API.

> **aesEncrypWithIV**(`buffer`, `key`, `IV`): `Buffer`\<`ArrayBuffer`>

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

## Parameters

### buffer

`Buffer`

### key

`Buffer`

### IV

`Buffer`

## Returns

`Buffer`\<`ArrayBuffer`>
