rite a program that, given a query consisting of multiple substitution cipher encryption and decryption requests, consecutively applies them to a given plaintext/ciphertext and outputs the final result.
I meet the problem about encryption and decryption programming.can someone help me? it can use programming C,java,C++,haskell….
Purpose of this exercise: construct a tool to work with a substitution cipher. Write a program that, given a query consisting of multiple substitution cipher encryption and decryption requests, consecutively applies them to a given plaintext/ciphertext and outputs the final result. Each request has the following structure: (d | e) (mapping | shift) Where mapping represents a permutation of the 26 character English alphabet, and shift is a signed 4 byte integer (−2 31 ≤ shift ≤ 2 31 − 1). A decryption request should revert the specified mapping or shift on the given text. Note: an encryption with a shift divisible by 26 does not modify the text and a shift equal to 3 is equivalent to the classical Caesar encryption. The correct sequence for calling the substitution cipher is the following: 1. Call the tool on the command line without arguments. 1 2. On the first stdin line, indicate the series of requests (following the above structure), followed by the newline character. 3. On the following lines, insert the text upon which the query will be applied. The first request will use this text to produce the ciphertext/plaintext which will be in turn used by the second request, and so forth until the last request. As an example, the following string could be inserted on the first line of stdin: d 5 e 12 d zyxwvutsrqponmlkjihgfedcba e 3
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
