Sample code for 30+ languages & platforms
Perl

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Perl Downloads

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $success = 0;

my $str = Chilkat2::SecureString->new;
$str->MaintainHash('sha256');
$str->Append('Hello World');

my $encodedHash = $str->HashVal('base64');
print $encodedHash, "\n";