Login and get codingIn this Bite you evaluate the strength of a password. Complete the function below and return a score from 0 to 5. Each of the following matches increases the score by one:
- Password has both lower- and uppercase letters,
- Password contains one or more numbers in addition to one or more characters,
- Password has one or more special characters,
- Password has a minimum length of 8 characters,
- Password starting 8 chars ("long enough") that doesn't have repeating characters ('1234abcbd' = good, '1234abbd' = bad, because it has a repeated b)
Let's brush up some regex skills and score those passwords, have fun!
Will you be the 102nd person to crack this Bite?
Resolution time: ~55 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 5.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪