> ## 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.

# base64_decode

> Декодирует ввод Base64 через Base64 decoder и возвращает декодированные байты как Lua string.

<div className="real-function-page">
  ```lua theme={null}
  base64_decode(data: string): string
  ```

  ## Алиасы

  * `base64decode`
  * `base64.decode`
  * `crypt.base64.decode`
  * `crypt.base64_decode`
  * `crypt.base64decode`

  ## Аргументы

  <ParamField path={"data"} type={"string"} required>
    Ввод Base64, передаваемый в Base64 decoder.
  </ParamField>

  ## Возвраты

  <ResponseField name={"decoded"} type={"string"}>
    Декодированные байты, возвращаемые как Lua string с явной длиной.
  </ResponseField>

  ## Пример

  Декодируйте данные Base64 и прочитайте возвращенный Lua string.

  ```lua theme={null}
  local encoded = base64_encode("hello world")
  local decoded = base64_decode(encoded)

  print(decoded)
  print(base64decode(encoded))
  print(base64.decode(encoded))
  ```
</div>
