Sample code for 30+ languages & platforms
AutoIt

Example: Crypt2.DecodeString method

Demonstrates how to call the DecodeString method.

Chilkat AutoIt Downloads

AutoIt
$oCrypt2 = ObjCreate("Chilkat.Crypt2")

; The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="

Local $sEncodedStr = "SGVsbG8gV29ybGQ="
Local $sEncoding = "base64"
Local $sCharset = "utf-8"

Local $str = $oCrypt2.DecodeString($sEncodedStr,$sCharset,$sEncoding)
ConsoleWrite($str & @CRLF)

; Output is "Hello World"