Fixed typo
authorNeil Smith <neil.github@njae.me.uk>
Fri, 25 Oct 2013 16:27:36 +0000 (17:27 +0100)
committerNeil Smith <neil.github@njae.me.uk>
Fri, 25 Oct 2013 16:27:36 +0000 (17:27 +0100)
cipher.py

index f2c6775223f726de2386c4d674c829e19922dd55..e38a5fdcd234ab0e041504094c5bc7dcc77e3648 100644 (file)
--- a/cipher.py
+++ b/cipher.py
@@ -125,7 +125,7 @@ def affine_break(message):
                 lettertxt = letter_frequencies(plaintxt)
                 total1 = scale_freq(lettertxt)
                 total2 = scale_freq(english_counts)
-                fit = value_diff(total2, total1)c
+                fit = value_diff(total2, total1)
                 if fit < best_fit:
                     best_key = (multiplier, shift, one_based)
                     best_fit = fit