Question: Given the shifter string above, the plaintext FAD would be encrypted into FGE and the ciphertext CGE decrypts into the plaintext BAD. Below are more

Given the shifter string above, the plaintext "FAD" would be encrypted into "FGE" and the ciphertext "CGE" decrypts into the plaintext "BAD". Below are more in-depth descriptions of the required behavior:
public Substitution()
Constructs a new Substitution Cipher with an empty shifter.
public Substitution(String shifter)
Constructs a new Substitution Cipher with the provided shifter.
Should throw an IllegalArgumentException if the length of the shifter doesn't match the number of characters within our Cipher's encodable range (Cipher.TOTAL_CHARS), contains a duplicate character, or any individual character falls outside the encodable range (< Cipher.MIN_CHAR or > Cipher.MAX_CHAR).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!