projekty
/
krypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testovani variant jakobsenova algoritmu
[krypto.git]
/
jakobsen.py
diff --git
a/jakobsen.py
b/jakobsen.py
index
9b7c0eb
..
2e2caf1
100644
(file)
--- a/
jakobsen.py
+++ b/
jakobsen.py
@@
-93,3
+93,9
@@
def desifruj(zprava, mezery=True):
return '\n'.join([''.join(substituce(zprava, slovnik)),
' '.join(ref.abeceda),
' '.join([slovnik[c] for c in ref.abeceda])])
return '\n'.join([''.join(substituce(zprava, slovnik)),
' '.join(ref.abeceda),
' '.join([slovnik[c] for c in ref.abeceda])])
+
+def __test():
+ print desifruj('Mxbhfxn cbfbhinpr, wnx fv f gvzuyr cbenqv.'.upper())
+
+def __test2():
+ print desifruj('Sel pes do lesa a potkal dlazebni kostku. Chtelo by to jeste o neco delsi test, to tedy jo.'.upper())