cryptopals/examples/set1_5/main.rs

12 lines
303 B
Rust
Raw Normal View History

2023-04-27 04:58:19 +00:00
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!")
}