Sample code for 30+ languages & platforms
Xojo Plugin Requires Chilkat v11.2.0+

Base62 Encoding and Decoding

Demonstrates base62 encoding and decoding.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim bd As New Chilkat.BinData

//  Base62 encode.
Dim success As Boolean
success = bd.AppendString("hello world","utf-8")
Dim base62_encoded As String
base62_encoded = bd.GetEncoded("base62")
System.DebugLog("hello world --> " + base62_encoded)

//  Output: 
//  hello world --> AAwf93rvy4aWQVw

//  Base62 decode
Dim sb As New Chilkat.StringBuilder
success = sb.DecodeAndAppend("AAwf93rvy4aWQVw","base62","utf-8")
System.DebugLog("decoded: " + sb.GetAsString())

//  Output:
//  decoded: hello world