summaryrefslogtreecommitdiffstats
path: root/challenge/c05.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-08-31 20:46:38 -0400
committerrsiddharth <s@ricketyspace.net>2020-08-31 20:46:38 -0400
commit66a3a35972b6330da73462d14eedf07158f7f299 (patch)
tree18826357ecb94c2e783d0ff9928139d1b005c80b /challenge/c05.go
parentd944fa2586adea8b58ee4f07497ff197df28bc2c (diff)
lib: BytesToHexStr -> AsciiStrToHexStr
* challenge/c05.go (C5): Change BytesToHexStr call to AsciiStrToHexStr * lib/hex.go (BytesToHexStr): Rename to... (AsciiStrToHexStr): ...this. Change argument to string.
Diffstat (limited to 'challenge/c05.go')
-rw-r--r--challenge/c05.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge/c05.go b/challenge/c05.go
index 7f22663..96f0893 100644
--- a/challenge/c05.go
+++ b/challenge/c05.go
@@ -15,7 +15,7 @@ var key string = "ICE"
func C5() {
es := lib.RepeatingXOR(icebaby, key)
- hs := lib.BytesToHexStr([]byte(es))
+ hs := lib.AsciiStrToHexStr(es)
fmt.Printf("RepeatingXOR('%v', '%v') = %v\n", icebaby, key, hs)
}