diff options
author | rsiddharth <s@ricketyspace.net> | 2020-08-29 13:37:41 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-08-29 13:37:41 -0400 |
commit | 209a14eff23fd2f75b1e82288505b04a0596a110 (patch) | |
tree | 6ffc3fd8d77e0c45bb71d7b76b24090f45709adf /challenge/c01.go | |
parent | 3cc030abc080a79101998afa5df99e7ef5d4a2fd (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/c01.go')
-rw-r--r-- | challenge/c01.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge/c01.go b/challenge/c01.go index b7f5a4d..656a859 100644 --- a/challenge/c01.go +++ b/challenge/c01.go @@ -5,12 +5,12 @@ package challenge import ( "fmt" - "ricketyspace.net/cryptopals/enc" + "ricketyspace.net/cryptopals/lib" ) func C1() { hex := "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" - b64 := enc.HexToBase64(hex) + b64 := lib.HexToBase64(hex) fmt.Printf("b64(0x%v) = %v\n", hex, b64) } |