Java Password Generator

I want a Java password generator that needs to generate passwords with standard criteria of at least 8 characters, contains one uppercase letter, one special character, etc.
It will be great if it is open source. Any suggestions / pointers?

Thanks.

+5
source share
2 answers

If I where you are, I would put all valid characters in char[] and use SecureRandom to select n characters from this array.

After completion, you can add numbers and special characters until they meet your needs.

+7
source

All Articles