Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🔤 encoding - Kodlama Dönüşümleri

Base64, Hex, URL ve karakter kodlama dönüşümleri

📦 79 Fonksiyon 📝 832 Satır 💾 26.5 KB

📋 Genel Bakış

encoding modülü, Base64, hexadecimal, URL encoding ve karakter set dönüşümleri gibi yaygın kodlama/çözme işlemleri için araçlar sağlar.

🔐 Base64 Kodlama

  • encoding.base64_kodla() - Base64 kodlama
  • encoding.base64_çöz() - Base64 çözme
  • encoding.base64url_kodla() - URL-safe Base64

🔢 Hex Kodlama

  • encoding.hex_kodla() - Hexadecimal kodlama
  • encoding.hex_çöz() - Hex çözme

🌐 URL Encoding

  • encoding.url_kodla() - URL encode
  • encoding.url_çöz() - URL decode

💡 Kullanım Örnekleri

Base64 ve Hex Dönüşümleri

kullan encoding

değer metin = "Merhaba BERK!"

// Base64 kodlama
değer base64 = encoding.base64_kodla(metin.bayt())
yazdır(f"Base64: {base64}")

// Base64 çözme
değer çözülmüş = encoding.base64_çöz(base64).aç()
yazdır(f"Çözülmüş: {Dize.bayttan(çözülmüş)}")

// Hex kodlama
değer hex = encoding.hex_kodla(metin.bayt())
yazdır(f"Hex: {hex}")

🔗 İlgili Modüller