In C language: You are a foreign spy, and you are trying to communicate with your buddy across the globe. You wish to ensure that your message is entirely confidential, upholds its integrity, and is accessible by your buddy. Your message is written in a text file, you are going to create an encryption scheme with a shared default password ("potatoes") between you and your buddy, and your will is to transmit your ciphertext to your buddy in hopes that he can decrypt it. Part 1: Write a program that would read your plaintext message from the text file. Create a caesar cipher that can be accessible by a unique password ("potatoes"), and write your ciphertext to a new text file. The encryption algorithm should shift your characters by adding 5 to your plaintext ASCII values, and the decryption algorithm should shift your characters by subtracting 5 from your ciphertext ASCII values Part 2: Read your ciphertext message from the newly created text file, convert it back into plaintext, and write the plaintext message into a new text file. NOTE: Your new plaintext message should be the exact same as the provided one. Due date: 04/1/2024 Read from file Apply caesar cypher Only letters should be shifted over, not spaces or punctuation. Upper case letters should remain uppercase Lower case letters should remain lower case letters If you have questions about the caesar cipher please contact Sam or Sarah or Dr. Chamon Prompt user for password o If password is correct carry on, if not, end program ⚫Create new encrypted.txt file ⚫Write encrypted text to encrypted.txt file ⚫Read encrypted text from encrypted.txt file ⚫Decrypt encrypted text Write decrypted text to a decrypted.txt file plaintext.txt: She sells seashells by the seashore.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Alert dont submit AI generated answer.

In C language: You are a foreign spy, and you are trying to communicate with your buddy across the globe. You wish to ensure that your message is entirely confidential, upholds its
integrity, and is accessible by your buddy. Your message is written in a text file, you are going to create an encryption scheme with a shared default password ("potatoes") between
you and your buddy, and your will is to transmit your ciphertext to your buddy in hopes that he can decrypt it. Part 1: Write a program that would read your plaintext message from the
text file. Create a caesar cipher that can be accessible by a unique password ("potatoes"), and write your ciphertext to a new text file. The encryption algorithm should shift your
characters by adding 5 to your plaintext ASCII values, and the decryption algorithm should shift your characters by subtracting 5 from your ciphertext ASCII values Part 2: Read your
ciphertext message from the newly created text file, convert it back into plaintext, and write the plaintext message into a new text file. NOTE: Your new plaintext message should be the
exact same as the provided one. Due date: 04/1/2024 Read from file Apply caesar cypher Only letters should be shifted over, not spaces or punctuation. Upper case letters
should remain uppercase o Lower case letters should remain lower case letters o If you have questions about the caesar cipher please contact Sam or Sarah or Dr. Chamon
user for password If password is correct carry on, if not, end program ⚫Create new encrypted.txt file ⚫Write encrypted text to encrypted.txt file ⚫Read encrypted text from
encrypted.txt file Decrypt encrypted text Write decrypted text to a decrypted.txt file plaintext.txt: She sells seashells by the seashore.
Prompt
Transcribed Image Text:In C language: You are a foreign spy, and you are trying to communicate with your buddy across the globe. You wish to ensure that your message is entirely confidential, upholds its integrity, and is accessible by your buddy. Your message is written in a text file, you are going to create an encryption scheme with a shared default password ("potatoes") between you and your buddy, and your will is to transmit your ciphertext to your buddy in hopes that he can decrypt it. Part 1: Write a program that would read your plaintext message from the text file. Create a caesar cipher that can be accessible by a unique password ("potatoes"), and write your ciphertext to a new text file. The encryption algorithm should shift your characters by adding 5 to your plaintext ASCII values, and the decryption algorithm should shift your characters by subtracting 5 from your ciphertext ASCII values Part 2: Read your ciphertext message from the newly created text file, convert it back into plaintext, and write the plaintext message into a new text file. NOTE: Your new plaintext message should be the exact same as the provided one. Due date: 04/1/2024 Read from file Apply caesar cypher Only letters should be shifted over, not spaces or punctuation. Upper case letters should remain uppercase o Lower case letters should remain lower case letters o If you have questions about the caesar cipher please contact Sam or Sarah or Dr. Chamon user for password If password is correct carry on, if not, end program ⚫Create new encrypted.txt file ⚫Write encrypted text to encrypted.txt file ⚫Read encrypted text from encrypted.txt file Decrypt encrypted text Write decrypted text to a decrypted.txt file plaintext.txt: She sells seashells by the seashore. Prompt
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education