Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have to implement encryption and decryption with Simplified DES, as discussed in the class and in Stallings 3 rd edition. The permutations IP ,
You have to implement encryption and decryption with Simplified DES, as discussed in the class and in Stallings rd edition. The permutations IP P P and SW and the functions and the Sbox S are all as described, and can be hardwired into your program. For parts a and b you will use the original S box as described in Stallings rd edition. However, for part c you have to use a modified Sbox S In the modified S the rows and are the same as described for the original S but the rows and have been switched. So row is and row is Your program should:
take as input a bit block of plaintext and a bit key.
Show the following output please only print what is being asked for, and nothing else:
the intermediate result after the SW operation while encypting.
the ciphertext.
the intermediate result after the SW operation while decrypting.
the result of the decryption process.
You have to run your programs on the following inputs:
a with the original S: the example from the textbook ie the plaintext is and the key is In this case we know the ciphertext should come out to be so this is a good way to check that your program is performing correctly on this input.
b with the original S: the plaintext is and the key is
c with the modified S: the plaintext is and the key is
Please note that you do not have to actually implement these operations as bit operations. For example, you can store the plaintext as an array of integers.
If you find it easier, you can hardwire the Sboxes SSS in your program. preferably python and full code. urgent
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