Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started