summaryrefslogtreecommitdiffstats
path: root/challenge/c06.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-02-24 16:49:59 -0500
committerrsiddharth <s@ricketyspace.net>2021-02-24 16:49:59 -0500
commitf0521d8df2191956e1a2ab47860792dbfbf60d87 (patch)
tree92c409b8541591efe04cecd60012affa0ccb0bb9 /challenge/c06.go
parentc2a12c63b34f521c53b87dd7fcee7f379a69fb2f (diff)
challenge/c05.go: refactor
Keep everything inside C5
Diffstat (limited to 'challenge/c06.go')
-rw-r--r--challenge/c06.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge/c06.go b/challenge/c06.go
index 9e0d81d..025a29f 100644
--- a/challenge/c06.go
+++ b/challenge/c06.go
@@ -29,7 +29,7 @@ func crack(bs []byte, ks int) (string, string) {
blocks := lib.BreakIntoBlocks(bs, ks)
blocks = lib.TransposeBlocks(blocks, ks)
- key = ""
+ key := ""
for i := 0; i < len(blocks); i++ {
k := findKey(blocks[i])