Question: C program (Not C++, or C#) Viginere Cipher 1)Ask the user if we are encrypting or decrypting. 2) Ask the user to enter a sentence
C program (Not C++, or C#)
Viginere Cipher
1)Ask the user if we are encrypting or decrypting.
2) Ask the user to enter a sentence to be transformed.
3) Ask the user to enter a sentence that will be used as the encryption or decryption key.
4) The sentences (array of characters) should end with a NULL terminator '\0'.
5) The range of values will be all printable characters on the ASCII chart starting with a SPACE - Value 32, up to and including a ~ - Value 126. Therefore, the number of symbols is 95 (0 to 94), i.e. Mod 95.
6) If the key is shorter than the message, make sure the key repeats until it matches the length of the text to be transformed. 7) Print out the transformed (encrypted or decrypted) message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
