Implement challenge 9 pkcs 7 padding.

This commit is contained in:
2022-04-13 21:42:42 -04:00
parent 415baedd78
commit 766a36e790
3 changed files with 22 additions and 0 deletions

11
src/set2.rs Normal file
View File

@@ -0,0 +1,11 @@
use crate::bytes::Bytes;
pub fn challenge9() {
let mut bytes = Bytes::from_utf8("YELLOW SUBMARINE");
bytes.pad_pkcs7(20);
println!("[okay] Challenge 9: {:?}", bytes.to_utf8());
}
pub fn challenge10() {
println!("[TBD] Challenge 10: TBD");
}