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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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