Solutions to set 1
This commit is contained in:
12
examples/set1_5/main.rs
Normal file
12
examples/set1_5/main.rs
Normal file
@ -0,0 +1,12 @@
|
||||
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!")
|
||||
}
|
2
examples/set1_5/output.txt
Normal file
2
examples/set1_5/output.txt
Normal file
@ -0,0 +1,2 @@
|
||||
0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272
|
||||
a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f
|
Reference in New Issue
Block a user