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

  Emerging technologies developments

Are you a optimistic or apprehensive about developments in emerging technologies that simulate human experience? Provide examples of a business condition that would benefit from each of the following?

  What are the advantages of using variables in a data type

What are the advantages of using variables in a data type? Substantiate your response with suitable examples. Justify your answers using examples and reasoning. Comment on the postings of at least two classmates with regard to whether you agree or..

  Create a script that presents a movie guessing game

create a script that presents a Movie guessing game. Allow the users to guess the best picture award from last year. Allow them to guess the word letter-by-letter by entering a character in a form.

  What are some other practical applications

What are some other practical applications you see fit for such models? Justify your answers with examples and reasoning.

  How spki be augmented to support policy

Consider a policy that, for reasons of separation of duties, does not allow an entity to exercise the rights it may grant (delegate) to others. How could SPKI be augmented to support such a policy?

  Describing online services provided by selected companies

Identify and briefly describe the online services provided by the selected companies (e.g. online catalogue search, online information search.

  Explain the key benefits that object-oriented programming

Explain the key benefits that object-oriented programming could afford the health care industry - Provide example that demonstrates the key manner in which the health care industry could implement functions.

  Create method return the number of positive numbers in array

Consider an array of integers as below: int[] a = {5, 2, -4, 3, 0, -5, 7, 11, 6, 13} a. Complete the method named count(int[] a) in the class Count.

  Write a program that instantiates objects of your classes

Write a program that instantiates objects of your classes and outputs each object's area (except Quadrilateral).

  Design application to accept reader data

Design an application that accepts reader data and produces a count of readers by age groups as follows: under 20, 20-29, 30-39, 40-49, and 50+.

  Compare and contrast the binary search trees

Compare and contrast the Binary Search Trees (BST) featuring the balancing operation implemented with the AVL trees.

  Implement the backend for a list

Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:List() - the constructor List (const List& 1) - a copy constructor

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