Tests for minimum length and complexity with char types.
These methods can be used with instantiation or functionally.
options
- minLength
Validate both length and complexity; only on instantiated passwords. Runs both functions. Returns true or false.
Validates for length, can pass minLength as an option on instantiation or as the second argument. No length maximum.
Validates for three of the following
- An uppercase letter
- A lowercase letter
- A number
- A special character Allows spaces.