From 66a3a35972b6330da73462d14eedf07158f7f299 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 31 Aug 2020 20:46:38 -0400 Subject: lib: BytesToHexStr -> AsciiStrToHexStr * challenge/c05.go (C5): Change BytesToHexStr call to AsciiStrToHexStr * lib/hex.go (BytesToHexStr): Rename to... (AsciiStrToHexStr): ...this. Change argument to string. --- challenge/c05.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge') 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) } -- cgit v1.2.3