Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with the python lab. The lab is related to Caesar cipher. Only need to deal with lowercase letters. IMG 0049JPG- Photos rN our
Need help with the python lab. The lab is related to Caesar cipher. Only need to deal with lowercase letters.
IMG 0049JPG- Photos rN our Implementation Deliverables (75%) Your individual implementation must complete the following tasks and include these items: 1. Your program file must be named caesar.py 2. Your program must contain the following functions: read file: Reads a file line by line and places each of the lines into a list. It returns this list. encrypt: Takes in a string and an integer offset and returns an en using the provided offset .decrypt: Takes in a string and an integer offset and returns an decrypted string using the provided offset brute: Takes in a list of strings and brute force decrypts them. This function will return a list of lists of strings. It will be in the form: offset_of.0, offset_of 1, . .. offset of_25 offset_of.0 is a list of all strings decrypted with offset ofo offset of 1 is a list of all strings decrypted with offset of 1 offset_of_25 is a list of all strings decrypted with offset of 25 educated brute: Takes in a list of strings and brute force decrypts them using educated guesses for the offset. This method is explained above. This function will return a list of lists of strings. It will be in the formStep 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