Question: I need decryption this code public static String caesarCipher ( String text ) { String encryptedText = new String ( ) ; / / encrypted
I need decryption this code
public static String caesarCipherString text
String encryptedText new String; encrypted text value
int key ; fixed Key value
for int i ; i text.length; i Loop to check each character in the plaintext
char currentChar text.charAti;
if CharacterisLettercurrentChar Check if the character is a letter
char base charcurrentChar aa : A; Encrypt by shifting each letter times
char encryptedChar charcurrentChar base key base;
encryptedText encryptedChar;
else
encryptedText currentChar; nonletter characters unchanged
return encryptedText;
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
