Sample code for 30+ languages & platforms
CkPython

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat CkPython Downloads

CkPython
import chilkat

success = False

str = chilkat.CkSecureString()
str.put_MaintainHash("sha256")
str.Append("Hello World")

encodedHash = str.hashVal("base64")
print(encodedHash)