Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Required Operations You must implement the following encryption schemes in this assignment. Note that the following descriptions often refer to the encodable / encryptable range,

Required Operations
You must implement the following encryption schemes in this assignment. Note that the following descriptions often refer to the "encodable/encryptable range," which is defined by the Cipher. WIIN_CHAR (lowest value in the range), Cipher. WAX_CHAR (highest value in the range), and Cipher. TOTAL_CHARS (total number of characters within the range) constants within (cipher . java
Substitution.java
grad Expand
The Substitution Cipher is likely the most commonly known encryption algorithm. It consists of assigning each input character a unique output character, ideally one that differs from the original, and replacing all characters from the input with the output equivalent when encrypting (and vice-versa when decrypting).
In our implementation, this mapping between input and output will provided via a shifter string. The shifter will represent the output characters corresponding to the input character at the same relative position within the overall range of encodable characters (defined by Cipher.MIN_CHAR and Cipher.MAX_CHAR). To picture this, we can vertically align this shifter string with the encryptable range and look at the corresponding columns to see the appropriate character mappings. Consider the following example:
Given the shifter string above, the plaintext "FAD" would be encrypted into "FGE" and the ciphertext "CGE"
image text in transcribed

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

2. What are the different types of networks?

Answered: 1 week ago