Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Type in Java or write print please this is the skeleton of the could 1 public class Decryptor{ 2 3 public static String decryptLevelOne(String
Please Type in Java or write print please
this is the skeleton of the could
1 public class Decryptor{ 2 3 public static String decryptLevelOne(String str){ 4 5 } 6 public static String decryptLevelTwo(String str){ 7 8 } 9 public static String readMessage(String fileName){ 10 11 } 12 public static void main(String[] args){ 13 14 } 15 }
In this lab is you will gain experience with the methods in the wrapper class Character. You will also explore some of the methods of the String and StringBuilder classes. Let us pretend that the company XYZ deals with a lot of sensitive data. Whenever they send clients data over the internet, they encrypt the data. The receiver of the data has a program which decrypts the message, allowing them to read the original information being sent. This way XYZ is able to send sensitive information across the network without any concerns. Due to the restructuring of the engineering staff, the pseudocode for the encryption algorithm has been leaked. You have been paid very handsomely by XYZ to try and reverse engineer the encryption process from the pseudocode. They want to see if it is possible to decrypt there messages. You are given the pseudocode and the latest message encrypted using their encryption algorithm. Decryptor + decryptLevelOne(str : String): String + decryptLevelTwo(str : String): String + readMessage( fileName : String): String + main(args : String[]); void Write the class Decryptor.java according to the UML diagram above. You will write 3 custom methods plus the main method. The encryption algorithm has two steps to it. First, the original message gets modified by updating the Unicode decimal values of the individual characters. Then the modified text gets further encrypted by replacing certain characters with other characters, inverting the case of the characters, adding additional characters at the beginning and the end of the message. After all of that the string sequence is reversed and ready to be send. Since you are trying to reverse engineer the process you will have to start on step two of the encryption algorithm, and then after that do step one. Below is the encrypted message. Encrypted Message - Notepad File Edit Format View Help *@GA{VE{c##$w{AEt8{It;WA4{ztFF{@{ [gw{AVtE6HB1f! bStep 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