# util.Base64Encode

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/util.Base64Encode
- **Çeviri tarihi:** 2025-09-08

```lua
string util.Base64Encode( string str, boolean inline = false )
```

## Açıklama

Belirtilen string'i base64 formatına kodlar.

> **NOT:** `inline` argümanı ile devre dışı bırakılmadığı sürece, döndürülen Base64, RFC 2045 standardına uygundur. **Bu, her 76 karakterde bir satır sonu olacağı anlamına gelir.**

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **str**: Kodlanacak string.
2. [boolean](https://gmod.tr/wiki/boolean) **inline** = false: `true` RFC 2045 uyumluluğunu (her 76 karakterde bir yeni satır) devre dışı bırakmak için

## Döndürülen Değerler

1. [string](https://gmod.tr/wiki/string): Base64 formatında kodlanmış string.

### Örnek

Bir string'i kodlar

```lua
local encoded = util.Base64Encode( "Base64 Encoding" )
print(encoded)
```

**Çıktı:** `QmFzZTY0IEVuY29kaW5n`

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/util.Base64Encode
