• Ask the user to enter a password that is 8-20 alphanumeric characters (letters & numbers only for simplicity) and assume entered correctly • Next, study pages 40, 74, 572 and 576-577 and use some of the String methods described on these pages to perform simple encryption on the password as follows: o add the string "bentleymajor" to the beginning of the password o replace each vowel character (a, e, i, o, u) to a unique non-alphanumeric character (non-letter, non-number) o replace each digit character (0-9) to a unique non-alphanumeric character (non-letter, non-number) o print the encrypted password o now decrypt the password by performing the reverse of the operations performed above o print the decrypted password (original password)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Encryption algorithms are commonly used today to provide security. They transform sensitive data, making it unreadable to hackers.
Modern encryption algorithms are quite sophisticated, often employing random number generators. For this project, we will create a very
simple encryption algorithm which will allow us to practice using some of the methods that come with the String class.
Read Chapter 2 pages 70-92 and study the program "StringMethods.java" given with this assignment to see how to use some of the
methods that come with the String class. Also, study the program "StudentInfo.java" given with this assignment to see how to use the
methods that come with the Scanner class to read data input.
Now create a new project named Chap2-Encryption. Create a new class named Encryption and add code to do the following:
• Ask the user to enter a password that is 8-20 alphanumeric characters (letters & numbers only for simplicity) and assume it was
entered correctly
• Next, study pages 40, 74, 572 and 576-577 and use some of the String methods described on these pages to perform simple
encryption on the password as follows:
o add the string "bentleymajor" to the beginning of the password
o replace each vowel character (a, e, i, o, u) to a unique non-alphanumeric character (non-letter, non-number)
O replace each digit character (0 - 9) to a unique non-alphanumeric character (non-letter, non-number)
O print the encrypted password
o now decrypt the password by performing the reverse of the operations performed above
o print the decrypted password (original password)
Hint: You will need to use string methods replace(), substring(), and length() for encrypting and decrypting the
password. See pages 74, 572, and 576-577 for information on these methods.
Here is a sample output:
Enter a password that contains 8-20 alphanumeric characters: LetsGoFalcons2023
...encrypting the password...
Your encrypted password is: b@ntl@ym!j$rL@tsG$F!lc$ns*^*(
...decrypting the password...
Your decrypted password is: LetsGoFalcons2023
**Before submitting your code file (.java file), be sure to check that it follows the guidelines given in the code submission checklist
(posted under Announcements)
Upload your working program file, Encryption.java, to BB by the specified due date/time. Submissions are Single Attempts so be
sure to upload your java file (not the .class file). This file can be found inside your workspace folder named eclipse-workspace\Chap2-
Encryption. Please do not copy it into another program like MS Word, and do not upload a screeshot. It needs to be a .java file (plain text)
so I can load it into Eclipse and run it.
Transcribed Image Text:Encryption algorithms are commonly used today to provide security. They transform sensitive data, making it unreadable to hackers. Modern encryption algorithms are quite sophisticated, often employing random number generators. For this project, we will create a very simple encryption algorithm which will allow us to practice using some of the methods that come with the String class. Read Chapter 2 pages 70-92 and study the program "StringMethods.java" given with this assignment to see how to use some of the methods that come with the String class. Also, study the program "StudentInfo.java" given with this assignment to see how to use the methods that come with the Scanner class to read data input. Now create a new project named Chap2-Encryption. Create a new class named Encryption and add code to do the following: • Ask the user to enter a password that is 8-20 alphanumeric characters (letters & numbers only for simplicity) and assume it was entered correctly • Next, study pages 40, 74, 572 and 576-577 and use some of the String methods described on these pages to perform simple encryption on the password as follows: o add the string "bentleymajor" to the beginning of the password o replace each vowel character (a, e, i, o, u) to a unique non-alphanumeric character (non-letter, non-number) O replace each digit character (0 - 9) to a unique non-alphanumeric character (non-letter, non-number) O print the encrypted password o now decrypt the password by performing the reverse of the operations performed above o print the decrypted password (original password) Hint: You will need to use string methods replace(), substring(), and length() for encrypting and decrypting the password. See pages 74, 572, and 576-577 for information on these methods. Here is a sample output: Enter a password that contains 8-20 alphanumeric characters: LetsGoFalcons2023 ...encrypting the password... Your encrypted password is: b@ntl@ym!j$rL@tsG$F!lc$ns*^*( ...decrypting the password... Your decrypted password is: LetsGoFalcons2023 **Before submitting your code file (.java file), be sure to check that it follows the guidelines given in the code submission checklist (posted under Announcements) Upload your working program file, Encryption.java, to BB by the specified due date/time. Submissions are Single Attempts so be sure to upload your java file (not the .class file). This file can be found inside your workspace folder named eclipse-workspace\Chap2- Encryption. Please do not copy it into another program like MS Word, and do not upload a screeshot. It needs to be a .java file (plain text) so I can load it into Eclipse and run it.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY