Solutions to set 1

This commit is contained in:
2023-04-26 21:58:19 -07:00
parent 6cceb35c3d
commit e5edf80da4
26 changed files with 1179 additions and 0 deletions

View File

@ -0,0 +1 @@
49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d

11
examples/set1_1/main.rs Normal file
View 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!")
}

View File

@ -0,0 +1 @@
SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t