Sample code for 30+ languages & platforms
Visual Basic 6.0

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim str As New ChilkatSecureString
str.MaintainHash = "sha256"
success = str.Append("Hello World")

Dim encodedHash As String
encodedHash = str.HashVal("base64")
Debug.Print encodedHash