Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that takes a key (a number from 1 to 26) an input file name, and an output file name from the command

Write a program that takes a key (a number from 1 to 26) an input file name, and an output file name from the command line and uses the key to encrypt it with a Caesar cipher. A Caesar cipher performs modular addition of the key and the letter. If the key is 1 then a->b, b->c, ..., y->z, z->a . Ignore all the things that arent the letters from a to z (simply pass them through) and you will want to put the letters into lower case. Use the file message1.txt and a key of 7 to encrypt it. (You can do this one pretty easily in bash too.)

PLEASE ANSWER ONLY IN BASH/LINUX

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

More Books

Students also viewed these Databases questions

Question

clarify and articulate your research methodology;

Answered: 1 week ago

Question

consider how to build on prior learning.

Answered: 1 week ago