Sample code for 30+ languages & platforms
Chilkat2-Python

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import chilkat2

success = False

str = chilkat2.SecureString()
str.MaintainHash = "sha256"
str.Append("Hello World")

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