12 lines
303 B
Rust
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!")
|
|
} |