Sample code for 30+ languages & platforms
C#

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.SecureString str = new Chilkat.SecureString();
str.MaintainHash = "sha256";
str.Append("Hello World");

string encodedHash = str.HashVal("base64");
Debug.WriteLine(encodedHash);