mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Fixed typo in caesar_cipher.py (#2979)
* Fixed typo in caesar_cipher.py * Typo fixes
This commit is contained in:
@ -220,7 +220,7 @@ def brute_force(input_string: str, alphabet=None) -> dict:
|
||||
def main():
|
||||
while True:
|
||||
print(f'\n{"-" * 10}\n Menu\n{"-" * 10}')
|
||||
print(*["1.Encrpyt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")
|
||||
print(*["1.Encrypt", "2.Decrypt", "3.BruteForce", "4.Quit"], sep="\n")
|
||||
|
||||
# get user input
|
||||
choice = input("\nWhat would you like to do?: ").strip() or "4"
|
||||
|
@ -183,7 +183,7 @@ class XORCipher:
|
||||
# crypt = XORCipher()
|
||||
# key = 67
|
||||
|
||||
# # test enrcypt
|
||||
# # test encrypt
|
||||
# print(crypt.encrypt("hallo welt",key))
|
||||
# # test decrypt
|
||||
# print(crypt.decrypt(crypt.encrypt("hallo welt",key), key))
|
||||
|
Reference in New Issue
Block a user