Question: public class Encryption { public static String Encrypt ( String text ) { String encryptedText = ; for ( int i = 0
public class Encryption
public static String EncryptString text
String encryptedText ;
forint i ; i text.length; i
int a inttextcharAti;
Systemout.printa;
a a ;
encryptedText chara;
Systemout.printlna;
return encryptedText;
public static String DecryptString encryptedText
String decryptedText ;
forint i ; i encryptedText.length; i
int a intencryptedTextcharAti;
a a;
a a ;
a a ;
a a ;
Systemout.printlna;
decryptedText chara;
return decryptedText;
this code is an encryption method but the enciphering method needs to be different so please change it
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
