Sample code for 30+ languages & platforms
Xbase++

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oStr
LOCAL cEncodedHash

nSuccess := 0

oStr := CreateObject("Chilkat.SecureString")
oStr:MaintainHash := "sha256"
oStr:Append("Hello World")

cEncodedHash := oStr:HashVal("base64")
? cEncodedHash

oStr:destroy()