Sample code for 30+ languages & platforms
Go

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Go Downloads

Go
    success := false

    str := chilkat.NewSecureString()
    str.SetMaintainHash("sha256")
    str.Append("Hello World")

    encodedHash := str.HashVal("base64")
    fmt.Println(*encodedHash)

    str.DisposeSecureString()