AutoIt
AutoIt
Base64 Encode/Decode a String
See more Encryption Examples
_LANGUAGE_ example to base-64 encode and decode a string.Chilkat AutoIt Downloads
Local $bSuccess = False
$oBd = ObjCreate("Chilkat.BinData")
Local $s = "A friend called me up the other day and talked about investing in a dot-com that sells lobsters. Internet lobsters. Where will this end? --Donald Trump"
$bSuccess = $oBd.AppendString($s,"utf-8")
Local $strBase64 = $oBd.GetEncoded("base64")
ConsoleWrite($strBase64 & @CRLF)
; To decode:
$oBd2 = ObjCreate("Chilkat.BinData")
$oBd2.AppendEncoded($strBase64,"base64")
Local $sDecoded = $oBd2.GetString("utf-8")
ConsoleWrite($sDecoded & @CRLF)