Remove duplicated code and make base64 error handling better

This commit is contained in:
2022-08-14 09:12:36 -04:00
parent fbf26efa44
commit 5158c16d56
8 changed files with 132 additions and 88 deletions

View File

@@ -1,3 +1,9 @@
use crate::{bytes::Bytes, utils};
pub fn challenge25() {
println!("[xxxx] Challenge 25: TBD");
let cipher = utils::read_base64("data/25.txt");
let key = Bytes::from_utf8("YELLOW SUBMARINE");
let _cleartext = crate::ecb::decrypt(&key, &cipher);
println!("[xxxx] Challenge 25: wip");
}