Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement a hybrid cipher that combines a key-phrase substitution cipher and a transposition ci- pher, in C++ or Java. The name of your program should

Implement a hybrid cipher that combines a key-phrase substitution cipher and a transposition ci- pher, in C++ or Java. The name of your program should be hybridcipher.cpp or hybridcipher.java. Include in your report instructions on how to compile your code.

The command syntax should be as follows:

hybridcipher -e

hybridcipher -d

where the -e option is associated with encryption and the -d option is associated with decryption. The ?start position? and ?keyphrase? will be used as the key for the key-phrase substitution cipher and you will also use ?keyphrase? for the transposition cipher.

You may assume all inputs (except the starting position) are lower case letters without punctua- tion. The input may need to be padded before doing encryption. You can use any suitable padding scheme when implementing the cipher. However, you should make sure that the decryption function will remove the padding and recover the original message only.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

Students also viewed these Databases questions

Question

1. What is called precipitation?

Answered: 1 week ago

Question

1.what is dew ?

Answered: 1 week ago

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago