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