Sample code for 30+ languages & platforms
PowerShell

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$str = New-Object Chilkat.SecureString
$str.MaintainHash = "sha256"
$str.Append("Hello World")

$encodedHash = $str.HashVal("base64")
$($encodedHash)