Sample code for 30+ languages & platforms
VBScript

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat VBScript Downloads

VBScript
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

success = 0

set str = CreateObject("Chilkat.SecureString")
str.MaintainHash = "sha256"
success = str.Append("Hello World")

encodedHash = str.HashVal("base64")
outFile.WriteLine(encodedHash)

outFile.Close