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

# aesDecrypt

> decrypt AES 256 CBC; where the IV is prefixed to the buffer

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

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

decrypt AES 256 CBC; where the IV is prefixed to the buffer

## Parameters

### buffer

`Uint8Array`

### key

`Uint8Array`

## Returns

`Buffer`\<`ArrayBuffer`>
