Tcl
Tcl
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat Tcl Downloads
load ./chilkat.dll
set crypt2 [new_CkCrypt2]
# The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
set encodedStr "SGVsbG8gV29ybGQ="
set encoding "base64"
set charset "utf-8"
set str [CkCrypt2_decodeString $crypt2 $encodedStr $charset $encoding]
puts "$str"
# Output is "Hello World"
delete_CkCrypt2 $crypt2