X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=cipher.py;fp=cipher.py;h=e38a5fdcd234ab0e041504094c5bc7dcc77e3648;hb=07a3297934bff966559ff179de53d9df06221a5a;hp=f2c6775223f726de2386c4d674c829e19922dd55;hpb=3dc63370f2be9afe868b79d836613aba24f1a06d;p=cipher-tools.git diff --git a/cipher.py b/cipher.py index f2c6775..e38a5fd 100644 --- 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