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

> Lua string의 바이트를 Base64 encoder로 인코딩하며, = padding을 사용하고 줄 바꿈은 넣지 않습니다.

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

  ## 별칭

  * `base64encode`
  * `base64.encode`
  * `crypt.base64.encode`
  * `crypt.base64_encode`
  * `crypt.base64encode`

  ## 인수

  <ParamField path={"data"} type={"string"} required>
    Base64 encoder에 전달되는 Lua string 바이트입니다.
  </ParamField>

  ## 반환값

  <ResponseField name={"encoded"} type={"string"}>
    Lua string으로 반환되는 Base64 출력입니다.
  </ResponseField>

  ## 예제

  Lua string을 인코딩하고 Base64 출력을 출력합니다.

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

  print(encoded)
  print(base64encode("hello world"))
  print(base64.encode("hello world"))
  ```
</div>
