Skip to content

Commit b59bd25

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ciphers/miznitskiy_cipher.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from string import ascii_uppercase
22

3+
34
def miznitskiy(text: str, key: str) -> str:
45
"""
56
Encrypt plaintext with the Miznitskiy cipher
@@ -23,8 +24,8 @@ def miznitskiy(text: str, key: str) -> str:
2324
ascii_len = len(ascii_uppercase)
2425
key_len = len(key)
2526
encrypted_text = ""
26-
keys = [ord(char) - ord('A') for char in key.upper()]
27-
27+
keys = [ord(char) - ord("A") for char in key.upper()]
28+
2829
if key_len == 0:
2930
raise ZeroDivisionError("integer modulo by zero")
3031

0 commit comments

Comments
 (0)