Menu

(Solved) : 619 Problem 5 Write Program Using Encryptor Decryptor Functions Encryptor Function Paramet Q38188679 . . .

Can any experts help me to solve this? its c programming.

619 Problem 5 Write a program using encryptor and decryptor functions encryptor function Parameters: (1) A char type 2-

7 19 Problem 5 decryptor function Parameters (1) A 2-dimension char type array storing predefined word (2) A char type arraB/9 Problem 5 The main function of your program executes each function (encryptor and decryptor) only once The predefined wor

619 Problem 5 Write a program using ‘encryptor’ and ‘decryptor’ functions ‘encryptor’ function Parameters: (1) A char type 2-dimiension array storing predefined words (2) A char type array used to store the output string (size of each row of the arrays: 10) Behaviors 1. Randomly selects one of the predefined words (plaintexts) from the first parameter 2. Encrypts the selected word by adding a random integer value between 1 19 (key) to each word (output is called ‘ciphertext) (0’ is not a letter) Ex) When the selected word is ‘ab…u and the random positive integer value is 3, char a ‘… char ‘h” ascii 97 98 117 asci 100 101 .120 3. Writes the ciphertext on the second parameter 4. Prints the selected word, the key, and the ciphertext Problem 5 7 19 Problem 5 “decryptor’ function Parameters (1) A 2-dimension char type array storing predefined word (2) A char type array which contains the ciphertext Figures out the key and the plaintext which were selected by encryptor D Make a guess about the key (119) 2 Make a guess about its plaintext by subtracting guessing key from the ciphertext ③ Probe if there is a matching word in the first parameter with the guessing plaintext 4 If there is a match, the original Key and Plaintext are found Repeats until recovering the original key and plaintext 2. Prints the key, and the plaintext which are recovered by the decryptor function. Problem 5 The main function of your program executes each function B/9 Problem 5 The main function of your program executes each function (encryptor and decryptor) only once The predefined words craftbeer, metallica, whitewine, champagne, bourgogne, sandiego, lafayette pinotnoir, sauvignon, dondiablo You may use the ‘strcmp’, and ‘strcpy’ functions in the ‘string.h’. Selected vord chenpagne Selected a ue of the Key phertext: jchtwhrl ey: 4 Plaintest: fkopsdi ch tching ward not found Decoder phertext rout: iohtwhnu ay: 5 Plaintmst ejcorcipo tching word not found Key: 1 Plaintext i tchirg word not found ay: 6 Plaintext: dibnobhof tcning word not found Guess 2 4 Key: 2 Plaintext hnf ruf Isj tchirg ord not found uess 7 Plaintext: charceane und the correct enever Key 3 Plaintext g eatekr tchirg word not fond sult: 7″ was selected as the Key chancagne was the Plaintext. 속하려면 아무 키나 1시오 Homework-7 [학무]협휴터’로 1래밉 ︽ ▼ ” Show transcribed image text

Expert Answer


Answer to 619 Problem 5 Write Program Using Encryptor Decryptor Functions Encryptor Function Paramet Q38188679 . . .

OR