#cipher #vigenere #vigenère

app vigenere-rs

Vigenere cipher implementation in Rust

1 unstable release

0.1.0 Jan 12, 2019

#2365 in Cryptography

MIT license

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"

No runtime deps