Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write this program in PYTHON LANGUAGE please Write a software (GUI) that can be used to encrypt and decrypt text messages. There should be no

write this program in PYTHON LANGUAGE please
image text in transcribed
image text in transcribed
Write a software (GUI) that can be used to encrypt and decrypt text messages. There should be no limit on the size of the message. Your program should first ask the user if she/he wants to encrypt or decrypt a message. Then, it should ask her/him to enter the message. Your program should print the encrypted or decrypted message based on the user input. You should implement a GUI to this program. Part 1: Analysis: (10 pts) Describe the problem (briefly) including input and output in your own words. Part 2: Design: (20 pts) Describe your design: describe the major steps for solving the problem. What functions you have implemented and used to solve the problem. What python functions you used. Make sure to write an encrypt and decrypt functions to make your code readable Use a flow chart to show the design of your system. (bonus 10 pts). Design a GUI interface for your program and describe it Part 3: Source code: (60 pts) Write your code with comments and use descriptive variable names. Don't forget to implement a GUI interface for your program using the tkinter module. Part 4: Testing: (10 pts) Describe what test cases you used to check the validity of your code (you might have more cases) Examples: 1. Entering a message to encrypt 2. Entering a message to decrypt 3. Entering a wrong command neither encrypt nor decrypt) Implementation and submission Instructions: 1. Choose your own design of GUI interface for your program. 2. Store user message (input) into a list of strings: Read the sentence from the user, then use the method "split" to split the sentence into different words (strings) and store each word into a cell of a list. 3. Encryption One way to encrypt a word is by adding 1 to each character in the word. In programming languages, each character can be represented by an integer value, so adding one to the character will change the letter. For example, if you add 1 to'g', then g will change to the letter h. Strings in Python are by default a list of character. To change each character to its integer value, you can use a function called ord(). For example, ord("a") will return 97. This is just one example to encrypt, we also took a way for encryption at assignment 2 using "Caesar Cipher". You can be creative and come up with your own encryption algorithm or use some known encryption algorithms! Have fun in this part! You will get a bonus of 40 pts if you used some other algorithms. 4. Convert the list of char to string To change a list of character back to a string use the '+' symbol to append characters and create a string. For example, a = ['P','y', 't', 'h','o','n') for letter in a: b = b + letter print("The word is",b) 5. Decryption Do the opposite of your encryption algorithm to decrypt a message. ba 6. Submit the following items by uploading them to Moodle: a. A Report (PDF) that includes part1, 2, 3 and 4. Use a cover page, make it professional looking b. Your source code as.py file. c. Compress both files into one folder and upload the compressed folder

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions