> For the complete documentation index, see [llms.txt](https://sarpers-organization.gitbook.io/ctftricks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sarpers-organization.gitbook.io/ctftricks/_chapter-intro-3/decryption/aes/trick-0433.md).

# Decrypt File Using AES CBC

***

With the recovered AES key and IV, decrypt the ciphertext file using a tool or library supporting AES CBC decryption.

Using a tool like Cyberchef, often referred to as "The Cyber Swiss Army Knife", load the ciphertext and apply the "AES Decrypt" operation. Configure the operation with the necessary parameters.

When setting up the AES Decrypt operation in Cyberchef, you will typically configure the following:

* **Operation:** AES Decrypt
* **Mode:** CBC
* **Key:** `[Your Recovered Key]` (Often specified in Hex format)
* **IV:** `[Your Recovered IV]` (Often specified in Hex format)
* **Padding:** Pkcs7 is a common padding scheme used with CBC mode.
* **Input Format:** Common formats include Raw or Hex, depending on how the ciphertext is represented.
* **Output Format:** Raw, UTF8, or Hex depending on the expected output data type.

Provide the ciphertext file content as the input to the tool.
