projects
/
cipher-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc6337
)
Fixed typo
author
Neil Smith
<neil.github@njae.me.uk>
Fri, 25 Oct 2013 16:27:36 +0000
(17:27 +0100)
committer
Neil Smith
<neil.github@njae.me.uk>
Fri, 25 Oct 2013 16:27:36 +0000
(17:27 +0100)
cipher.py
patch
|
blob
|
history
diff --git
a/cipher.py
b/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