Skip to content

java-academy/intro-2-generator-hasel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Random password generating console tool

Generating strong passwords is something you can do on your own but putting all the combination of lower and upper cases, numbers, symbols can be a tiresome work. Let’s automate it!

Tip
if you wish for your password to be truly randomized, read documentation for randomization in Java.
Note
ideally, you’d store the password somewhere to NOT have to remember it. You’d also make that storage SAFE. Customary it would be encrypted. While all that is required for a true password generator it’s NOT required here.
Important
Pure JDK only or plain JShell (even better).

Requirements

  1. script accepts parameters

    1. first parameter is int: 12 for password length being 12

    2. second is a boolean: true for alphanumeric passwords (no special characters, just digits, letters and whitespace)

  2. password length is by default 10 but can be overriden through parameter (above)

  3. password length of 8 and less causes a warning to be printed informing us of length being short enough to brute force the attack

  4. some websites don’t accept special characters, so offer an option to only create alphanumeric passwords

  5. program calculates and informs the user of the enthropy behind the password (its strength)

Releases

No releases published

Packages

No packages published