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 indepth descriptions of the required behavior:
public Substitution
Constructs a new Substitution Cipher with an empty shifter.
public SubstitutionString 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 CipherTOTALCHARS contains a duplicate character, or any individual character falls outside the encodable range Cipher.MINCHAR or Cipher.MAXCHAR
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
