Question
A python program A which runs on computer A. Program A reads a provided text file called Assignment1_Input.dat which contains text of approximately 2500 words.
A python program A which runs on computer A. Program A reads a provided text file called Assignment1_Input.dat which contains text of approximately 2500 words. You are first required to remove all spaces and punctuation characters from this text file and write it to a new file called Assignment1_Clean.dat, which should contain only lowercase letters. Program A is required to generate 100 random characters which are written to a file key.dat.
Code must be written in Python
Question that I need answer for:
1. Program A is then required to use the Vigenere cipher to encrypt the Assignment1_Clean.dat file with the key from the key.dat file and write the result to a file called Assignment1_Encrypt.dat.
Step 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