Sample code for 30+ languages & platforms
Lianja

Example: Crypt2.DecodeString method

Demonstrates how to call the DecodeString method.

Chilkat Lianja Downloads

Lianja
loCrypt2 = createobject("CkCrypt2")

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

lcEncodedStr = "SGVsbG8gV29ybGQ="
lcEncoding = "base64"
lcCharset = "utf-8"

lcStr = loCrypt2.DecodeString(lcEncodedStr,lcCharset,lcEncoding)
? lcStr

// Output is "Hello World"


release loCrypt2