Question: can you add to this source code by using the new instructions plus it needs to be in Java. please and thank you. The password

 can you add to this source code by using the new

instructions plus it needs to be in Java. please and thank you.

The password must meet the following criteria it is at least 8

characters long . it contains at least one letter it contains at

least one digit it contains at least one of these four characters:

, ?, !- Otherwise it returns false . The user should be

allowed to continue to try to create a password until they have

met all criteria Inform the user what is missing if they are

can you add to this source code by using the new instructions plus it needs to be in Java. please and thank you.

The password must meet the following criteria it is at least 8 characters long . it contains at least one letter it contains at least one digit it contains at least one of these four characters: , ?, !- Otherwise it returns false . The user should be allowed to continue to try to create a password until they have met all criteria Inform the user what is missing if they are unable to meet the criteria . For example: Jackson as a password does not have a special character This part of the program takes the valid password (a string) and returns the encrypted form of the password. Note: there is no decrypt function (there is no need to decrypt passwords). We will use the following VERY simple encryption algorithm http://practicalcryptography.com/ciphers/simple-substitution-cipher/) Print the password as a plaintext Print the password as cyphertext (encrypted) Source code import java.util.Scanner; public class PasswordManager // this method returns true if password matches all criteria public static boolean isPasswordAccepted() { 1/ create a scanner class object to take input from user Scanner sc = new Scanner(System.in); // take input from user System.out.print("Enter password: "); String password=sc.next(); // for checking if password length // is minimum 8 or not. if not, return false if (!(password.length() >= 8)) { return false; } // checking digits int count = 0; for (int i=0;i= 8)) { return false; } // checking digits int count = 0; for (int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!