Question
Write a computer program using C++ to implement a simplified version of the DES Block Cipher algorithm, S-DES. You will need to implement the encryption
Write a computer program using C++ to implement a simplified version of the DES Block Cipher algorithm, S-DES. You will need to implement the encryption and decryption functions of this algorithm.
Encryption: It will take an 8-bit block plaintext and a 10-bit key and it will generate an 8-bit block ciphertext.
Decryption: It will take an 8-bit block ciphertext and the same 10-bit key and it will generate the 8-bit block plaintext that was encrypted with that key.
Verify that the implementation works, then perform some experiments on different inputs.
The following appendix shows the algorithm used: https://app.box.com/shared/06vnp1hiu3/1/11093575/42458718/1
The program should start by asking the user if he needs to do the encryption or decryption and then it will start to take the corresponding inputs and displays the corresponding output.
Use the following table to test your implementation:
10-bit Key | 8-bit Plaintext | 8-bit Ciphertext |
1111111111 | 10101010 | 00000100 |
1111111111 | 11111111 | 00001111 |
1110001110 | 10101010 | 11001010 |
1010000010 | 01110010 | 01110111 |
0000000000 | 10101010 | 00010001 |
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