Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I haven't studied repetition sentences yet. Please don't use them in the project Please use the support provided and adhere to the project instructions II.

image text in transcribed

image text in transcribed

I haven't studied repetition sentences yet. Please don't use them in the project Please use the support provided and adhere to the project instructions

II. Project Description: This project is about Caesar Cipher technique which is one of the earliest and simplest ciphers. It is simply a type of substitution cipher where each letter of a given text is replaced by a letter some fixed number of positions down the alphabet set {A, B, C... Z}. For example, with a shift of 1. A would be replaced by B. B would become C, and so on. Thus, to encrypt a given text, we need an integer value known as key which indicates the number of positions each letter of the text has to be moved down. III. Project Phase 1: In the first phase of this project, you will implement encryption operation of Caesar Cipher which will transform a given plaintext into ciphertext. You have to create a Java program containing a class called CaeserCipher to encrypt the plaintext into ciphertext.: The class must have two instance variables: message (plaintext) and key The class must have a default constructor to initialize the instance variables with default values. The class must have a constructor that initializes the instance variables with specific values passed as parameters. The class must have a method called encrypt to compute the ciphertext from plaintext. In this phase the size of the plaintext is fixed to 5 letters The program will have a second class called Caesar Cipher Demo that contains a main method to perform the following: Ask the user to input the plaintext (Sletters) and key. Instantiate the object of Caesar Cipher class by using the plaintext and key information. Compute and display the ciphertext. Hint The code below can help you to code the method encrypt. String mestring = "aksd"; //save the first character of the variable matnine in the variable waban char mychar = wstring, sharat(0); // save the next character of ww.shan into the manaible Deuchan char newchar = (char) (myChar+1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions