From 758314be9aace88467b47b46d7395e60a90e2c4a Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 28 Nov 2020 22:09:21 -0500 Subject: challenge: do challenge 09 --- challenge/c09.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 challenge/c09.go (limited to 'challenge') diff --git a/challenge/c09.go b/challenge/c09.go new file mode 100644 index 0000000..aaf1664 --- /dev/null +++ b/challenge/c09.go @@ -0,0 +1,15 @@ +// Copyright © 2020 rsiddharth +// SPDX-License-Identifier: ISC + +package challenge + +import ( + "fmt" + "ricketyspace.net/cryptopals/lib" +) + +func C9() { + in := lib.StrToBytes("YELLOW SUBMARINE") + in_padded := lib.Pkcs7Padding(in, 24) + fmt.Printf("IN: %v\nOUT: %v\n", in, in_padded) +} -- cgit v1.2.3