summaryrefslogtreecommitdiffstats
path: root/challenge/c02.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-08-29 13:37:41 -0400
committerrsiddharth <s@ricketyspace.net>2020-08-29 13:37:41 -0400
commit209a14eff23fd2f75b1e82288505b04a0596a110 (patch)
tree6ffc3fd8d77e0c45bb71d7b76b24090f45709adf /challenge/c02.go
parent3cc030abc080a79101998afa5df99e7ef5d4a2fd (diff)
rename package enc -> hex
* Makefile (fmt): fmt lib instead of enc * challenge/c01.go: Use lib instead of enc * challenge/c02.go: Use lib instead of enc * enc/b64.go -> lib/b64.go * enc/hex.go -> lib/hex.go * enc/xor.go -> lib/xor.go
Diffstat (limited to 'challenge/c02.go')
-rw-r--r--challenge/c02.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge/c02.go b/challenge/c02.go
index d8f03c9..eb45a4f 100644
--- a/challenge/c02.go
+++ b/challenge/c02.go
@@ -5,13 +5,13 @@ package challenge
import (
"fmt"
- "ricketyspace.net/cryptopals/enc"
+ "ricketyspace.net/cryptopals/lib"
)
func C2() {
a := "1c0111001f010100061a024b53535009181c"
b := "686974207468652062756c6c277320657965"
- c := enc.FixedXOR(a, b)
+ c := lib.FixedXOR(a, b)
fmt.Printf("XOR(%v ^ %v) = %v\n", a, b, c)
}