Perl
Chilkat2 Perl
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat Perl Downloads
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";