Ruby
Ruby
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat Ruby Downloads
require 'chilkat'
success = false
str = Chilkat::CkSecureString.new()
str.put_MaintainHash("sha256")
str.Append("Hello World")
encodedHash = str.hashVal("base64")
print encodedHash + "\n";