Sample code for 30+ languages & platforms
PHP

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat PHP Downloads

Chilkat2 PHP
<?php

use Chilkat2\SecureString;

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

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