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

# crypt.decrypt

> Base64 ciphertext degerini Base64 decode edilmis key ve gerekli Base64 IV ile AES CBC veya ECB kullanarak decrypt eder.

<div className="real-function-page">
  ```lua theme={null}
  crypt.decrypt(data: string, key: string, iv: string, mode?: "CBC" | "ECB" | "AES-CBC" | "AES-ECB"): string
  ```

  ## Argümanlar

  <ParamField path={"data"} type={"string"} required>
    Decrypt isleminden once decode edilen Base64 ciphertext.
  </ParamField>

  <ParamField path={"key"} type={"string"} required>
    AES icine aktarilmadan once decode edilen Base64 key.
  </ParamField>

  <ParamField path={"iv"} type={"string"} required>
    mode islenmeden once decode edilen Base64 IV. Bu arguman ECB icin de gereklidir.
  </ParamField>

  <ParamField path={"mode"} type={"\"CBC\" | \"ECB\" | \"AES-CBC\" | \"AES-ECB\""}>
    AES mode. Varsa AES- prefix kaldirilir. Varsayilan deger AES-CBC.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"plaintext"} type={"string"}>
    Lua string olarak dondurulen plaintext byte degerleri.
  </ResponseField>

  ## Örnek

  crypt.encrypt tarafindan dondurulen ciphertext degerini dondurulen IV ile decrypt et.

  ```lua theme={null}
  local key = crypt.generatekey()
  local ciphertext, iv = crypt.encrypt("hello world", key)

  local plaintext = crypt.decrypt(ciphertext, key, iv)

  print(plaintext)
  ```
</div>
