Solutions to set 1
This commit is contained in:
1
examples/set1_1/input.txt
Normal file
1
examples/set1_1/input.txt
Normal file
@ -0,0 +1 @@
|
||||
49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d
|
11
examples/set1_1/main.rs
Normal file
11
examples/set1_1/main.rs
Normal file
@ -0,0 +1,11 @@
|
||||
use cryptopals::prelude::*;
|
||||
|
||||
const INPUT: &'static str = include_str!("input.txt");
|
||||
const OUTPUT: &'static str = include_str!("output.txt");
|
||||
|
||||
fn main() {
|
||||
dbg!(INPUT);
|
||||
dbg!(OUTPUT);
|
||||
assert_eq!(Vec::<u8>::from_hex(INPUT).unwrap().to_b64(), OUTPUT);
|
||||
println!("pass!")
|
||||
}
|
1
examples/set1_1/output.txt
Normal file
1
examples/set1_1/output.txt
Normal file
@ -0,0 +1 @@
|
||||
SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t
|
Reference in New Issue
Block a user