Crates.io | vigenere-rs |
lib.rs | vigenere-rs |
version | 0.1.0 |
source | src |
created_at | 2019-01-12 21:12:54.661597 |
updated_at | 2019-01-12 21:12:54.661597 |
description | Vigenere cipher implementation in Rust |
homepage | https://github.com/Webd01/vigenere-cipher |
repository | https://github.com/Webd01/vigenere-cipher |
max_upload_size | |
id | 108219 |
size | 4,416 |
A Vigenère cipher implementation in Rust
let v = Vigenere::new();
let r = v.encrypt("saluttasdadereqrtttttttttt", "morqwewdti");
println!("Encrypted {:?}", r);
let r2 = v.decrypt(r, "morqwewdti".to_string());
println!("Decrypted {:?}", r2); // "saluttasdadereqrtttttttttt"