Sample code for 30+ languages & platforms
B4X

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat B4X Downloads

B4X
Dim success As Boolean = False

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

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