Answered step by step
Verified Expert Solution
Question
1 Approved Answer
14. Programming Assignment: Write a script called poly_cipher.pl in Perl (or poly_cipher.py in Python) that is an implementation of the Vigenere polyalpha- betic cipher for
14. Programming Assignment: Write a script called poly_cipher.pl in Perl (or poly_cipher.py in Python) that is an implementation of the Vigenere polyalpha- betic cipher for messages composed from the letters of the English alphabet, the numerals 0 through 9, and the punctuation marks 2,7', and '?'. Your script should read from standard input and write to stan- dard output. It should prompt the user for the encryption key. Your hardcopy submission for this homework should include some sample plaintext, the ciphertext, and the encryption key used. Make your scripts as compact and as efficient as possible. Make liberal use of builtin functions for what needs to be done. For example, you could make a circular list with either of the following two constructs in Perl: unshift( Qarray, pop(array) ) push( Qarray, shift(@array) ) See perlfaq4 for some tips on array processing in Perl
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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