subject
Computers and Technology, 21.03.2020 07:54 ava5015

**Please it is necessary to use the functions and the names given. It is also important to use string and getline.**

Implement two decryption functions corresponding to the above ciphers. When decrypting ciphertext, ensure that the produced decrypted string is equal to the original plaintext:

decryptCaesar(ciphertext, rshift) == plaintext
decryptVigenere(ciphertext, keyword) == plaintext
Write a program decryption. cpp that uses the above functions to demonstrate encryption and decryption for both ciphers.

It should first ask the user to input plaintext, then ask for a right shift for the Caesar cipher and report the ciphertext and its subsequent decryption. After that, it should do the same for the Vigenere cipher.

Example:

$ ./decryption

Enter plaintext: Hello, World!

= Caesar =
Enter shift : 10
Ciphertext : Rovvy, Gybvn!
Decrypted : Hello, World!

= Vigenere =
Enter keyword : cake
Ciphertext : Jevpq, Wyvnd!
Decrypted : Hello, World!

(When reporting decrypted strings, they should be the result of applying decryption functions to the ciphertext, not the original plaintext variable.)

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, moomoo2233
What’s the process of observing someone actually working in a career that interests you?
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, lamanihill
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
image
Computers and Technology, 25.06.2019 00:00, jessica2138
He computer component that disperses heat from the microprocessor to the cooling fan is a cooler thermometer heat sink
Answers: 1
You know the right answer?
**Please it is necessary to use the functions and the names given. It is also important to use strin...

Questions in other subjects:

Konu
English, 12.04.2021 18:40
Konu
Mathematics, 12.04.2021 18:40