-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify character list #21
Comments
There is one main way to do it.
or you can extend ComputerPasswordGenerator and override the constructor with your own config. |
Apologies, should have specified I'm using the RequirementPasswordGenerator. It's come in pretty handy as applications we use have very specific password requirements. |
It'll be the same with RequirementPasswordGenerator, as that extends ComputerPasswordGenerator anyway. If you override the contractor you will need to call the parent.
|
Using setParameter worked fine, thanks! |
I have a specific requirement where in I can only use certain special characters. Is there anyway to specify what ones will be used when generating a password?
Another odd requirement is my first character must be alphanumeric, but I can do this after with substr.
The text was updated successfully, but these errors were encountered: