Question: Gravity Falls Cryptogram Solver Version 2: Adding Atbash cipher The mysteries of Gravity Falls must be discovered. Help Dipper and Mabel discover the secret messages


Gravity Falls Cryptogram Solver Version 2: Adding Atbash cipher The mysteries of Gravity Falls must be discovered. Help Dipper and Mabel discover the secret messages by writing a program that will help you uncover the mysteries of ciphers! Now, you will add one more method, and your program will provide two potential solutions (one with the Caesar cipher and one with the Atbash cipher). Dipper and Mabel will choose the one that works best. Atbash cipher reverses the alphabet. For example: - Letter A is the first letter in the alphabet, so it will be replaced with the last letter, which is Z. - Letter D is the 4th letter in the alphabet, so it will be replaced with the 4th letter from the end, which is W. Your program should correctly decrypt both upper-case and lower-case letters and keep all other characters (whitespace, punctuation, etc.) intact. What to do In addition to the decrypt_caesar( ) function that you already have, implement the decrypt_atbash () function that would decipher (decrypt) a given message with the Atbash cipher. 1. Keep your decrypt_caesar() function as is 2. Implement the decrypt_atbash () function that would decipher (decrypt) a given message with the Atbash cipher 3. Alter your main() function, so that it tries both Caesar and Atbash ciphers Your decrypt_caesar ( ) function should not be able to decrypt an Atbash cipher! Atbash cipher must be implemented in the separate decrypt_atbash () function. \# decrypt_caesar() function is already implemented, do not change it def decrypt_atbash(text: str) - str: Decipher a text (Atbash cipher). \# TODO: Implement this function pass def main() -> None: """ Main program. """ text = input("Enter a text to decipher: ") print("Let's try all the methods we have:") \# TODO: Alter the main() function, it should print \# text deciphered with both Caesar and Atbash methods main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
