Write about Key generation program,Encryption program,Decryption program,Break program

SKU: Ques16 Category:

Takes as input the name of the file containing the plaintext

 

Order Now

Write the following four small programs:

1. Key generation program (gen). Takes as input no parameters, and outputs a file key.txt that contains a random key encoded as follows. The file is composed of a single line of 26 characters. Each character is a lowercase letter of the English alphabet. The first letter corresponds to how ‘a’ is encrypted, and so on. (In the example on my slides, key.txt would contain ejinbmo…)

 

2. Encryption program (enc). Takes as input the name of the file containing the plaintext, loads the key from key.txt (stored in the same directory as the program) and outputs ciphertext.txt, which is a file containing the encryption of the plaintext under the key in key.txt. All characters that are not letters or whitespaces (spaces, tabs, newlines, etc.) are removed from the plaintext prior to encryption, then the input is converted to lowercase characters.

 

3. Decryption program (dec). Takes as input the name of the file containing the ciphertext, loads the key from key.txt (stored in the same directory as the program) and outputs plaintext.txt, which is a file containing the decryption of the ciphertext under the key in key.txt.

 

4. Break program (break). Takes as input the name of the file containing the ciphertext, and outputs the decryption of the file. The break program does not have access to key.txt, or to the original plaintext. This program only works on English text.

 

 
 

Writing your homework and assignments all on your own is a difficult task. So, Assignments4u has made it easy for students by helping them in writing their assignments. Assignments4u will assist you in completing your tasks, and you can approach us with all your assignment, homework, and essay writing requirements.

We have over 4350+ experienced writers working as experts in different streams of study. Get all your academic doubts clarified and take pride in learning subjects like history, math’s or law. Our assignment help and essay help is available in countries like USA, Australia, New Zealand, Singapore and many more. Get accounting assignment help, corporate nursing assignment help, marketing assignment help or else statistics assignment help in exchange for a nominal price.

Reviews

There are no reviews yet.

Be the first to review “Write about Key generation program,Encryption program,Decryption program,Break program”

Your email address will not be published. Required fields are marked *

Sorry no more offers available

When assignments gets tough, get tougher

Want a fresh solution like this one? 
We are available 24/7
ORDER NOW
0 Shares
+1
Share
Tweet
Pin
Call Back