projects
/
cipher-training.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tidied up keyword ciphers and writeups
[cipher-training.git]
/
cipher.py
diff --git
a/cipher.py
b/cipher.py
index ba62d411a902e40f6bc1b259d2733111f891407d..e39abce8adf96fa495b631370057ba1470bc6525 100644
(file)
--- a/
cipher.py
+++ b/
cipher.py
@@
-242,9
+242,9
@@
def affine_decipher(message, multiplier=1, adder=0, one_based=True):
class Keyword_wrap_alphabet(Enum):
- from_a =
0
- from_last =
1
- from_largest =
2
+ from_a =
1
+ from_last =
2
+ from_largest =
3
def keyword_cipher_alphabet_of(keyword, wrap_alphabet=Keyword_wrap_alphabet.from_a):