![]() ![]() ("ERROR! LENGTH OF PASSWORD MUST BE BETWEEN 10 AND 120") If((PWlength 120) & numberOfPW 120) & numberOfPW > 100) ("ERROR! NUMBER OF PASSWORDS YOU WISH TO GENERATE MUST BE LESS THAN OR EQUAL TO 100\n") If ((PWlength >= 12 & PWlength 0 & numberOfPW 120) & numberOfPW > 0 & numberOfPW = 12 & PWlength = 12 & PWlength 100) If(test.hasNextInt() & amount.hasNextInt()) ("Please enter the number of passwords you wish to create: ") įinal private void testLength(Scanner test, Scanner amount) ("Please enter the length for your new password(s): ") ("This program generates between 1 and 100 RANDOM and SECURE passwords.\nPasswords are not stored in any way.\nWRITE DOWN YOUR NEW PASSWORDS!\nPassword length must be between 12 and 120.\n\n") import įinal public static void main(String args) I'm also not sure how truly "random" the password generation is or if it is too excessive. It works well but it's been a long time since I wrote any java and am just looking on ways to clean up the code. ![]() I wrote this program recently to generate random passwords for myself. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |