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
|
2023-04-28 01:37:59 +00:00
|
|
|
I go crazy when I hear a cymbal").unwrap();
|
2023-04-27 04:58:19 +00:00
|
|
|
let output = bvec!("output.txt");
|
|
|
|
|
|
|
|
assert_eq!(input.xor_repeating(&b"ICE".to_vec()).unwrap(), output);
|
|
|
|
|
|
|
|
println!("pass!")
|
|
|
|
}
|