Sample code for 30+ languages & platforms
Node.js

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var success = false;

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

    var encodedHash = str.HashVal("base64");
    console.log(encodedHash);

}

chilkatExample();