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

  Leverage business intelligent-create meaningful information

Include how we can leverage business intelligent to create meaningful information and decision making systems to help keep cost and profits.

  The command sequence in a normal smtp session

1.What would the command sequence in a normal SMTP session be? Use C: to preface a command issued by the client and S: to preface a command issued by the server.

  Recognize root-subsystem-functional decomposition diagram

You want to add another column to report showing number of cases still in progress which are over six months old. Also design functional decomposition diagram. Recognize the root and subsystems.

  Describe how to recover file for further investigation

When you try to open file in image viewer, message is displayed indicating that file is corrupt. Write 2-3 page report describing how to recover the file, orkty.zip, for further investigation.

  High-level descriptions of customer-s expectations

It needs to have high-level descriptions of the customer's expectations and the criteria for success. You need to describe why these are the best choices and why alternatives will not work as well.

  Create an html5 document that contains an unordered list

Create an HTML5 document that contains an unordered list with links to the following examples headings, email, images as hyperlink these are from textbook, special characters, tables, HTML5 forms, and internal links to be included.

  Write one java statement to display the string

Write one Java statement to display the string "The average is xxx" to the console, where the xxx displays the value from the double variable sum divided by 3. Make sure the value is displayed with 3 digits following the decimal point.

  Explaining benefits of reconnaissance tools

Write down some popular reconnaissance tools? Compare three reconnaissance tools and describe the benefits and limitations of each.

  Give remediation recommendation for potential vulnerability

Provide a remediation recommendation for a potential vulnerability found with the use of the "eval" function in a static analysis report.

  Ladybug extends class critter

Ladybug extends class Critter. It changes to the color of another critter (and only critters) that it approaches. When encountering a flower, it will change all of the flower colors to the ladybug's current colo

  Discuss why the user needs are important

Discuss why the User Needs are important or stood out to you. Cite specific examples from readings. Include personal experience with the topic if appropriate.

  Methods-majority of target audience can play applications

What are some methods that we can guarantee that majority of target audience can play applications?

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