Skip to content

Commit 634532c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9102776 commit 634532c

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

ciphers/baconian_cipher.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,33 @@
88
"""
99

1010
ENCODE_DICT = {
11-
"a": "AAAAA", "b": "AAAAB", "c": "AAABA", "d": "AAABB",
12-
"e": "AABAA", "f": "AABAB", "g": "AABBA", "h": "AABBB",
13-
"i": "ABAAA", "j": "BBBAA", "k": "ABAAB", "l": "ABABA",
14-
"m": "ABABB", "n": "ABBAA", "o": "ABBAB", "p": "ABBBA",
15-
"q": "ABBBB", "r": "BAAAA", "s": "BAAAB", "t": "BAABA",
16-
"u": "BAABB", "v": "BBBAB", "w": "BABAA", "x": "BABAB",
17-
"y": "BABBA", "z": "BABBB", " ": " ",
11+
"a": "AAAAA",
12+
"b": "AAAAB",
13+
"c": "AAABA",
14+
"d": "AAABB",
15+
"e": "AABAA",
16+
"f": "AABAB",
17+
"g": "AABBA",
18+
"h": "AABBB",
19+
"i": "ABAAA",
20+
"j": "BBBAA",
21+
"k": "ABAAB",
22+
"l": "ABABA",
23+
"m": "ABABB",
24+
"n": "ABBAA",
25+
"o": "ABBAB",
26+
"p": "ABBBA",
27+
"q": "ABBBB",
28+
"r": "BAAAA",
29+
"s": "BAAAB",
30+
"t": "BAABA",
31+
"u": "BAABB",
32+
"v": "BBBAB",
33+
"w": "BABAA",
34+
"x": "BABAB",
35+
"y": "BABBA",
36+
"z": "BABBB",
37+
" ": " ",
1838
}
1939

2040
DECODE_DICT = {value: key for key, value in ENCODE_DICT.items()}

0 commit comments

Comments
 (0)