Question
please write in python 3 Functions: get_caesar_mapping(shift, message) : This function accepts a shift amount (positive or negative) and a message and returns the smallest
please write in python 3
Functions:
get_caesar_mapping(shift, message): This function accepts a shift amount (positive or negative) and a message and returns the smallest encoding dictionary needed to encode the message. Remember to wrap as outlined above (you may assume that the shift is in the range of [-94,94] so that you never have to wrap twice).
caesar_encode(shift, message): This function accepts a shift amount (positive or negative) and a message and returns the encoded message. Hint: You already know how to do a substitution encoding if you had an encoding dictionary for this shift amount...
caesar_decode(shift, message): This function accepts a shift amount (positive or negative) and an encoded message and returns the decoded message. Note: shift is how much the message was shifted, not how much to shift it back...
MORE FUNCTIONS :
vigenere_encode(secret, message): This function accepts a secret (string) and a message and returns the encoded message.
vigenere_decode(secret, message): This function accepts a secret (string) and an encoded message and returns the decoded message. Note: secret is phrase used to encode the message, but you need to decode...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started