Sample code for 30+ languages & platforms
Tcl

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set str [new_CkSecureString]

CkSecureString_put_MaintainHash $str "sha256"
CkSecureString_Append $str "Hello World"

set encodedHash [CkSecureString_hashVal $str "base64"]
puts "$encodedHash"

delete_CkSecureString $str