summaryrefslogtreecommitdiffstats
path: root/cryptopals.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-08-29 10:56:29 -0400
committerrsiddharth <s@ricketyspace.net>2020-08-29 10:56:29 -0400
commit53c9ac5b8842c96e397cbd6fd30d7140fcf8311f (patch)
tree34c61d657fd397a43af4ab6894810fb5ae29828e /cryptopals.go
parentfb3468f0e9b531352ac9f1b97817b52a0b579ce4 (diff)
add cryptopals.go
Diffstat (limited to 'cryptopals.go')
-rw-r--r--cryptopals.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cryptopals.go b/cryptopals.go
new file mode 100644
index 0000000..7b311c3
--- /dev/null
+++ b/cryptopals.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "flag"
+ "ricketyspace.net/cryptopals/challenge"
+)
+
+var c = flag.Int("c", 0, "Challenge to run")
+
+func init() {
+ flag.Parse()
+}
+
+func main() {
+ switch *c {
+ case 0:
+ flag.PrintDefaults()
+ case 1:
+ challenge.C1()
+ }
+}