summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-08-26 23:27:27 -0400
committerrsiddharth <s@ricketyspace.net>2020-08-26 23:27:27 -0400
commit8abd2ef6db410ce8b2ba9afa1a79bd5821ec6d2e (patch)
tree836783aa4a8ca5aad5e3fb8e72fbf0233ba6fab5
parent95611cf378d383012f5cafbcb60e8a39666316fd (diff)
c1.go: Challenge 1
-rw-r--r--c1.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/c1.go b/c1.go
new file mode 100644
index 0000000..5248d59
--- /dev/null
+++ b/c1.go
@@ -0,0 +1,13 @@
+package main
+
+import (
+ "fmt"
+ "ricketyspace.net/cryptopals/enc"
+)
+
+func main() {
+ hex := "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
+ b64 := enc.HexToBase64(hex)
+
+ fmt.Printf("b64(0x%v) = %v\n", hex, b64)
+}