Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started