Sample code for 30+ languages & platforms
Rust

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Rust Downloads

Rust

let str = chilkat::SecureString::new();
str.set_maintain_hash("sha256");
let _ = str.append("Hello World");

let encoded_hash = str.hash_val("base64").unwrap_or_default();
println!("{}", encoded_hash);