Encrypt and decrypt messages

Assignment Help Basic Computer Science
Reference no: EM13317009

Goal

You will write a program in C, in the Ubuntu Linux environment, to provide the end user with the ability to encrypt and decrypt messages, using a secret key. Your program will prompt the user to indicate whether they wish to encrypt a readable ("plaintext") message or decrypt an already encrypted sequence of numbers ("ciphertext") back to its readable form. You will implement the encryption and decryption algorithm described in the instructions below. In order to prevent your enemies from easily cracking your encrypted messages, the algorithm will use an incrementing counter to encrypt each character in a slightly different way. Your program will output the result (either the ciphertext or the plaintext) to the screen. You will begin with the skeleton code found here.

Learning Objectives

• familiarize yourself with the Linux programming environment
• write a small program in C that is modular, correctly designed and documented
• manipulate values at the bit level

Reference no: EM13317009

Questions Cloud

How long does doug have to open door before fatality limit : Doug decides to use a turkey fryer to prepare the Thanksgiving turkey. Due to cold weather, he prepares the turkey with the door closed, limiting air exchage (Q) within the 40 m3 garage to 0.2 m3 min-1
Projected total unit workload-patient classification level : Based on susan's projection of patient days, what is the projected total unit workload by patient classification level? What differences do you notice between the projected and the historic total unit workload?
Explain why should find another spot to camp : Based upon the recommended level for CO of 40 mg/m3, the given conditions, AND the fact that the fire will be burning ALL night, should you find another spot to camp b.
Determine the diameter of the hole : A large storage tank, open at the top and filled with water, develops a small hole in its side at a point 16.4 m below the water level. Determine the diameter of the hole
Encrypt and decrypt messages : Write a program in C, in the Ubuntu Linux environment, to provide the end user with the ability to encrypt and decrypt messages, using a secret key
Determine the radius of the circle : Three point charges, -6.05 10-9 C, -9.75 10-9 C, and +7.50 10-9 C, are fixed at different positions on a circle. What is the radius of the circle
Students for fair tuition-down with fascist tuition increase : Members of Students for Fair Tuition (SFT) decide to protest rising tuition costs at Gigantic State University (GSU) by taking over Dunfee Hall, the location of GSU president Dalton Chandler’s office. As they storm into the reception area of Chandler..
Determine the magnitude of the z component of the reaction : The geometry of the rod assembly is given as a=2.8 m, b=0.950 m, c=1.00 m, and d=0.600 m. Neglect the weight of the rod. The journal bearing supports the rod in such a manner that it is free to rotate in the Z-direction.
Calculate the electron speed : In a television picture tube, electrons strike the screen after being accelerated from rest through a potential difference of 33 500 V. find the electron speed just before the electron strikes the screen

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Object-oriented design to design a parent class called book

Use object-oriented design to design a parent class called Book that will receive the ISBN, author, title and price of a book, and select and print records for all books with a price of more than $50.00. Design a child class called TextBook th..

  Descriptions of data formats and to interpret raw data

The aim of this project is to exercise and test your ability to read and understand descriptions of data formats and to interpret raw data according to a particular format.  In this exercise you will produce and read the dump of a ZIP file.

  What are the features and define the values for parameters

What are the features you would consider essential if you were designing your perfect amplifier

  Derive taylor polynomials of degree

Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.

  Write a program to print a business travel expenses

Write a program to print a business travel expenses attachment for an income tax return. The program should request as input the name of the organization visited, the dates and location of the visit, and the expenses for meals and entertainment, a..

  Explain bindings which are required to determine semantics

Write simple assignment statement with one arithmetic operator in some language you know. For each component of statement, write various bindings which are needed to determine semantics.

  Write a program that uses an array of structs

Write a program that uses an array of structs. The structs will have the following data attributes: integer i_value float f_value Allow the user to enter 10 different integers and 5 different float numbers.

  Describe private and hybrid cloud computing models

In the current age of "hyper-connectivity", cloud computing is becoming more widely used and new platforms are emerging on a regular basis. You are required to conduct a review and comparison of public, private and hybrid cloud computing models.

  What is stored in alpha after the following code executes

What is stored in alpha after the following code executes? int alpha[5] = {0}; int j; for (j = 0; j 2) alpha[j - 1] = alpha[j] + 2; }

  Write subroutine in marie assembly that multiplies two value

Write a subtoutine in MARIE assembly that multiplies two values where the arguments for this subroutine are two pointers (each pointer pointing to a value). The routube, multiply (a,b), performs *a x *b where a's value is the address storing the valu..

  Write a method called sumarray

Write a method called sumArray that takes in as a parameter an array of integers x and returns an integer. Your method should return the sum of all the values stored in x .

  Line of developmental training and inspirational materials

The Becoming Company is a full service provider for a line of developmental training and inspirational materials including videos, music, and books called Drive Change.

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