Rust
Rust
Decode Base64
Demonstrates how to decode base64.Chilkat Rust Downloads
let bd = chilkat::BinData::new();
// Append a base64 string to bd.
let _ = bd.append_encoded("c2VjcmV0", "base64").is_ok();
// The bd now contains the decoded bytes.
// Let's say it was a password string..
let password = bd.get_string("utf-8").unwrap_or_default();
// Decodes to "secret".
println!("password = {}", password);