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

  Introduce the client''s situation and identify the problems.

Prepare a formal use case narrative. This narrative should use a formal use case format and integrate the narrative into the use cases as suggested by agile development and other literature

  Algorithms for finding possible winers-analysing complexity

Create algorithms for finding the possible winers and the Condorcet winner with analysing its complexity.

  Use a common data center of twenty

Analyze and explain how you would use DNS in your plan. Compose a two-paragraph executive summary highlighting the main points of your plan. Use at least three (3) quality resources in this assignment.

  Access the administrative tools

Access the Administrative Tools

  Use a random-number generator to pick each card

Your program must incorporate a two-dimensional array to represent the suit and the value of each card dealt to a player, keep track of which cards have been dealt to which player, and use a random-number generator to pick each card to be dealt to..

  What type of employees will you hire to work at help desk

You have been asked to create a help desk for the computer support division of your company

  Application screen design and layout function

Design focus is on providing the application screen design and layout function for the purchaser. You do not have to worry about the accounting system for the bookshop

  Find the minimum product of sumsexpression

Use algebraic manipulation to find the minimum product of sumsexpression for: (x1 + x3 + x4)(x1 + x2' +x3)(x1 + x2' + x3' + x4). Where ' stands for not.

  Most important benefit of virtualization

Green computing is the study and practice of ecofriendly computing resources. Green computing is often seen where huge data centers apply server virtualization to reduce the number of servers that would otherwise have to be installed. Determine wh..

  The analysis section is reserved for the author knowledge

The following table is a breakdown of the sections of the paper and the expected page count of each section. Note that the minimum page count is 12 double spaced pages. Also, APA style must be followed. Section of Paper Page Count (minimum - maximum)

  Design a program that asks the user to enter 10 golf scores

design a program that asks the user to enter 10 golf scores. the scores should be stored in an Integer array. Sort the array in ascending order and display its contents).

  The goal of this problem is to simulate a geometric random

The goal of this problem is to simulate a geometric random variable (which will be covered on Friday, Feb 6th in lecture). We will break this problem into two parts.

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