Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

Identify the risks associated with not planning.

Answered: 1 week ago

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago