You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some levels used by applications to determine the strength of a password:
Very weak: any character is allowed (example: "1234567890" or "qwerty")
Weak: at least one lower and one upper
Medium: at least one lower, one upper and one number
Strong: at least one lower, one upper, one number and one special character
Very strong: at least one lower, one upper, one number, one special character and a minimal length of 12
In order to support these various requirements, the following rules would be needed:
// Where numberCharacters means the number of required characters to match // strict = true means at most the provided number // while strict = false means at least the number of characters providednewContainsUppercaseCharacters($numberCharacters = 1, $strict = false, $message = null);
newContainsLowercaseCharacters($numberCharacters = 1, $strict = false, $message = null);
newContainsNumericCharacters($numberCharacters = 1, $strict = false, $message = null);
// For Special characters, to allow users of the library to define their own set of special charsnewMatchesRegex($regex, $message);
// Min LengthnewMinLength($length, $message);
newLength($length, $message); // For Exact length
The text was updated successfully, but these errors were encountered:
Here are some levels used by applications to determine the strength of a password:
In order to support these various requirements, the following rules would be needed:
The text was updated successfully, but these errors were encountered: