cryptopals/examples/set1_5/main.rs
2023-04-26 21:58:19 -07:00

12 lines
303 B
Rust

use cryptopals::{prelude::*, bvec};
fn main() {
let input = Vec::from_text(
"Burning 'em, if you ain't quick and nimble
I go crazy when I hear a cymbal");
let output = bvec!("output.txt");
assert_eq!(input.xor_repeating(&b"ICE".to_vec()).unwrap(), output);
println!("pass!")
}