Implement encryption and decryption with modied simplied des

Assignment Help Basic Computer Science
Reference no: EM13982098

You have to implement encryption and decryption with Modied Simplied DES, as discussed in the class and the
textbook. The permutations IP, P10, P8, and SW, and the functions fk; F, and the S-box S1 are all as described in
the textbook, and can be hardwired into your program. For parts (a) and (b), you use the original S0 box as described
in Stallings 3rd edition. However, for part (c), you have to use a modied S-box S0'. In the modied S0',
the rows 0 and 2 are the same as described for the original S0, but the rows 1 and 3 have been switched. So row 1 is
3; 1; 3; 2, and row 3 is 3; 2; 1; 0. Your program should:
take as input a 8-bit block of plaintext and a 10-bit key.

Show the following output (please only print what is being asked for, and nothing else):

(a) the intermediate result after the SW operation while encypting.

(b) the ciphertext.

(c) the intermediate result after the SW operation while decrypting.

(d) the result of the decryption process.

You have to run your programs on the following inputs:

(a) with the original S0: the example from the textbook i.e. the plaintext is 10111101 and the key is 1010000010.

In this case we know the ciphertext should come out to be 01110101, so this is a good way to check that your
program is performing correctly on this input.

(b) with the original S0: the plaintext is 11001110 and the key is 1001100101.

(c) with the modied S0': the plaintext is 00100101 and the key is 1001011001.

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.

Reference no: EM13982098

Questions Cloud

Describe what will happen to supply or demand for the dollar : Describe what will happen to supply or demand for the dollar and for the euro if more European tourists come to the US for vacations. Be sure to include whether each currency rises or falls in value.
Declare a pointer vptr that points to an object : Declare a pointer vPtr that points to an object of type unsigned int
Identify three questions you will have for zachary team : Based on this list of characteristics, identify three questions you will have for Zachary's team. These questions should help you gather information about how to better understand how Zachary's behavior, as well as strategies the team has found su..
Exchange rate between the dollar and the euro is one dollar : The exchange rate between the dollar and the euro is one dollar to .8 euro (€). The price of a Mercedes is € 45,000; the price of a similar size Cadillac is $38,000. What is the euro price of the Caddy? What is the dollar price of the Mercedes?
Implement encryption and decryption with modied simplied des : 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.
Describe and analyze the experience in terms of drawing : For this assignment you will apply course concepts or theories to a current or previous experience, in a way that explicitly illustrates the formula. In other words, select a life experience that you feel illustrates the formula.
Unified banking system : Keeping your money in a bank seems like a good idea. However, from time to time, depositors lose confidence in banks (this happened in summer of 2012 in Greece). If your bank was experiencing a run, would you join in, or would you be confident that t..
How much torque was applied by brakes to any one of wheels : You hit the brakes and stop after 30 seconds. How much torque was applied by the brakes to any one of the wheels? angular velocity is 117.31 rad/s.
Determine the tension developed in the cable : If the motor draws in the cable at a rate of v = (0.05s3 >2 ) m>s, where sis in meters, determine the tension developed in the cable when s= 10 m. The crate has a mass of 20 kg, and the coefficient of kinetic friction between the crate and the gr..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain ibm plan to give its it assets-intellectual property

Will IBM's plan to give away some of its IT assets and intellectual property also increase its support of open-source software products like Linux.

  Was the decision to offshore successful

How well did GlobShop manage the change process after making the decision to offshore? Was the decision to offshore successful? Defend your answers.

  Write an application that accepts a user password

Write an application that accepts a user's password from an input dialogs. When the entered password is less than six characters, more than 10 characters, or does not contain at least one letter and one digit, prompt the user again.

  How many bits are used to represent unicode and ascii

How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? What is the difference between yielding and sleeping?

  Explaining discrete-time system which moves between states

A decision maker observes a discrete-time system which moves between states {s1,s2,s3,s4} according to the following transition probability matrix?

  Create a histogram and a dot plot of the data

Create a random set of data equal to 25 samples with the random number generator. For the X column, use the Normal distribution with a mean of 100 and standard deviation of 20. For the Y column, use the Poisson distribution with a mean of 25. F..

  Represent valid comments

Java, C#, and C++ all allow use of comments. Which of the following represent(s) valid comments in these three languages

  Ieee 754 32-bit floating point values

Convert the following numbers to IEEE 754 32-bit floating point values (display results in hexadecimal)

  The benefits derived from application of computer technology

Briefly state the benefits derived from application of computer technology to controller - pilot communications. Explore in detail the challenges or risks of using CPDLC.

  How many memory banks are needed

How many memory banks are needed so that a stream of loads can, on average, require only one cycle per load?

  Hardware requirements for both the hd-dvd and blu-ray

Examine the processing hardware requirements for both the HD-DVD and Blu-ray. Compare and contrast the similarities and differences of each

  Primary keys and referential integrity constraints

Give the DDL commands to create the tables, primary keys and referential integrity constraints. The DDL must have at least an example of each of the following. Use comments to indicate the examples.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd