Sample code for 30+ languages & platforms
Visual FoxPro

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loStr
LOCAL lcEncodedHash

lnSuccess = 0

loStr = CreateObject('Chilkat.SecureString')
loStr.MaintainHash = "sha256"
loStr.Append("Hello World")

lcEncodedHash = loStr.HashVal("base64")
? lcEncodedHash

RELEASE loStr