Sample code for 30+ languages & platforms
Perl

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Perl Downloads

Perl
use chilkat();

$success = 0;

$str = chilkat::CkSecureString->new();
$str->put_MaintainHash("sha256");
$str->Append("Hello World");

$encodedHash = $str->hashVal("base64");
print $encodedHash . "\r\n";