projekty
/
krypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vigenere
[krypto.git]
/
robot.py
diff --git
a/robot.py
b/robot.py
index
ce6244f
..
7f651e1
100755
(executable)
--- a/
robot.py
+++ b/
robot.py
@@
-15,8
+15,8
@@
import posuny
import pickle
import os
import re
import pickle
import os
import re
-
-ABECEDA = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+from spolecne import ABECEDA
+import vigenere
class settings:
pass
class settings:
pass
@@
-146,6
+146,11
@@
if mod_x:
analyza.append("\nIndexy koincidence (bez mezer):")
analyza.append(koincidence.tabulka_indexu(zprava))
analyza.append("\nIndexy koincidence (bez mezer):")
analyza.append(koincidence.tabulka_indexu(zprava))
+# Vigenere
+if 'V' in opsny:
+ analyza.append("\nHeslo k Vigenerovi (" + opsny[-1] + "):")
+ analyza.append(vigenere.zjisti_heslo(zprava, int(opsny[-1])))
+
# Jakobsen
if mod_m:
analyza.append("\nJakobsen (s mezerami):")
# Jakobsen
if mod_m:
analyza.append("\nJakobsen (s mezerami):")