Implemention of RCP in rust
```rust use std::collections::HashMap; use rc_protocol::RCPConfig;
// Config is used to create a checksum as well as validate a checksum let config = RCPConfig { sharedsecret: "Shared Secret Key".tostring(), usetimecomponent: true, time_delta: 5, };
let mut m = HashMap::new(); m.insert("key1", "value1"); m.insert("key2", "value2");
// Get the checksum for a given dictionary let checksum = config.get_checksum(&m, "TestSalt");
// Validate a given checksum if !config.validate_checksum(&m, "TestSalt", &checksum) { println!("Checksum was incorrect"); } ```