1 unstable release
0.1.0 | Jan 12, 2019 |
---|
#2509 in Cryptography
5KB
80 lines
Vigenère cipher
A Vigenère cipher implementation in Rust
Example
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"