The two new methods that generate a random password leverage the ASCII table.
These methods are:
genChar - helper method that returns a random character (from a given range)
genPassword - returns a string of random characters (length matches the integer argument)
Also, the PasswordField class was changed to the TextField class, so that a user can easily copy the generated password (and paste it to the form that he/she is filling out).
The two new methods that generate a random password leverage the ASCII table.
These methods are:
Also, the PasswordField class was changed to the TextField class, so that a user can easily copy the generated password (and paste it to the form that he/she is filling out).