I want a password generator in Java, which should generate passwords with standard criteria like at least 8 characters long,contains one upper case letter, one special character etc.
It will great if it is open source.
Any suggestions / pointers ?
Thanks.
If I where you, I would put all allowed characters in a char[]
and use SecureRandom
to select n characters from this array.
Once done, you could add digits and special characters until it fits your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With