B4X
B4X
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat B4X Downloads
Dim crypt2 As ChilkatCrypt2
crypt2.Initialize("crypt2")
' The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
Dim encodedStr As String = "SGVsbG8gV29ybGQ="
Dim encoding As String = "base64"
Dim charset As String = "utf-8"
Dim str As String = crypt2.DecodeString(encodedStr, charset, encoding)
Log(str)
' Output is "Hello World"