Decryption algorithm: reverse the encryption algorithm

Assignment Help Basic Computer Science
Reference no: EM13304389

Program a secret key encryption and decryption method using c programming language based on the following:
- Your program must take an array of 8 characters as an input and output an array of 8 encrypted characters.
- Write the code necessary to create 8 unique random substitution tables, one for each character of the array.
- Your methods must use a 64-bit key (can be represented as another array of 8 characters) derived from an 8-character password.
- Encryption algorithm: Take the input array and xor it with the key. Using the xored output, perform a character-by-character substitution using the different substitution tables. Perform the permutation step once after the substitution step. For the permutation step, (circular) shift the bit pattern by one to the left with the leftmost bit becoming the rightmost bit. Repeat the above steps 16 times, corresponding to 16 rounds, with the output of a round serving as the input for the next round.
- Decryption algorithm: Reverse the encryption algorithm. The permutation, however, should (circular) shift the bit pattern by 1 bit to the right.

Reference no: EM13304389

Questions Cloud

Registers 0, 1,and 2 when the machine halts : What bit patterns will be in registers 0, 1,and 2 when the machine halts?
Lettuce is used with several types of hamburgers : Q8. Farmer Bob, Farmer Jane and Farmer Jose run a cow farming co-op. For every cow they keep the cow's name, age (or date of birth), breed and numbered plastic ear tag. The each of the three farmers own many cows and share some of the cows wit..
Accepts two int arguments and returns their sum : Assume the availability of a class named Arithmetic that provides a static method , add , that accepts two int arguments and returns their sum .
Utilizing supporting documentation obtained : Please provide a one page response to the following topic utilizing supporting documentation obtained from your textbooks and the Internet.
Decryption algorithm: reverse the encryption algorithm : Decryption algorithm: Reverse the encryption algorithm. The permutation, however, should (circular) shift the bit pattern by 1 bit to the right
An analysis of the security issues associated with batch fil : For this writing assignment you will be required to provide an analysis of the Security issues associated with batch files, Visual Basic and other forms of scripting.
The highest priority eligible to run will be scheduled : The XINU Operating System currently implements a Pre-emptive Priority Scheduling Algorithm. It follows the idea: 'At any point in time, the highest priority eligible to run will be scheduled'
Contrast, and summarize the most common procurement documen : Define, compare, contrast, and summarize the most common procurement documents used in industry.
Both the discussion and in the assignment tool : Post your response to the following questions in both the discussion and in the assignment tool. Name your assignment in the following manner: LastName_4A

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