Sample code for 30+ languages & platforms
Perl

Example: Crypt2.DecodeString method

Demonstrates how to call the DecodeString method.

Chilkat Perl Downloads

Perl
use chilkat();

$crypt2 = chilkat::CkCrypt2->new();

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

$encodedStr = "SGVsbG8gV29ybGQ=";
$encoding = "base64";
$charset = "utf-8";

$str = $crypt2->decodeString($encodedStr,$charset,$encoding);
print $str . "\r\n";

# Output is "Hello World"