summaryrefslogtreecommitdiffstats
path: root/challenge/c09.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-11-28 22:09:21 -0500
committerrsiddharth <s@ricketyspace.net>2020-11-28 22:09:21 -0500
commit758314be9aace88467b47b46d7395e60a90e2c4a (patch)
tree2341f6a03fe4f8204a5da4f53e296cff8323a0b2 /challenge/c09.go
parent40a42789d1cb1fb01f0c51bd9a222a0760ac9917 (diff)
challenge: do challenge 09
Diffstat (limited to 'challenge/c09.go')
-rw-r--r--challenge/c09.go15
1 files changed, 15 insertions, 0 deletions
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 <s@ricketyspace.net>
+// 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)
+}