|
|
|
|
153
|
|
153
|
|
154
|
1. **Only letters**: The score is $$-len$$ for a password that consists of letters only, otherwise it is $$0$$. For example,
|
154
|
1. **Only letters**: The score is $$-len$$ for a password that consists of letters only, otherwise it is $$0$$. For example,
|
155
|
|
155
|
|
156
|
- a. the score for `"ab453"` would be $$0$$ since it contains letters and numbers.
|
|
|
|
|
156
|
+ a. the score for `"ab453"` would be $$0$$ since it contains letters and numbers.
|
157
|
|
157
|
|
158
|
- b. the score for `"Barrunto"` would be $$-8$$ since it only contains letters and its length is $$8$$.
|
|
|
|
|
158
|
+ b. the score for `"Barrunto"` would be $$-8$$ since it only contains letters and its length is $$8$$.
|
159
|
|
159
|
|
160
|
2. **Only digits**: The score is $$-len$$ for a password that consists of digits only, otherwise it is $$0$$. For example,
|
160
|
2. **Only digits**: The score is $$-len$$ for a password that consists of digits only, otherwise it is $$0$$. For example,
|
161
|
|
161
|
|
162
|
- a. the score for `"ab453"` would be $$0$$ since it contains only letters and numbers.
|
|
|
|
|
162
|
+ a. the score for `"ab453"` would be $$0$$ since it contains only letters and numbers.
|
163
|
|
163
|
|
164
|
- b. the score for `”987987987”` would be $$-9$$ since it contains only digits and its length is $$9$$.
|
|
|
|
|
164
|
+ b. the score for `”987987987”` would be $$-9$$ since it contains only digits and its length is $$9$$.
|
165
|
|
165
|
|
166
|
3. **Consecutive uppercase letters**: The score is $$-2n$$ where $$n$$ is the number of uppercase letters that follow another uppercase letter. For example,
|
166
|
3. **Consecutive uppercase letters**: The score is $$-2n$$ where $$n$$ is the number of uppercase letters that follow another uppercase letter. For example,
|
167
|
|
167
|
|
168
|
- a. the score for `"DB453"` would be $$-2 \cdot 1 = -2$$ since it only contains one uppercase letter (`B`) that follows another uppercase letter.
|
|
|
|
|
168
|
+ a. the score for `"DB453"` would be $$-2 \cdot 1 = -2$$ since it only contains one uppercase letter (`B`) that follows another uppercase letter.
|
169
|
|
169
|
|
170
|
- b. the score for `"TNS1PBMA"` would be $$-2 \cdot 5 = -10$$ since it contains 5 uppercase letters (`N`, `S`, `B`, `M`, `A`) that follow another uppercase letter.
|
|
|
|
|
170
|
+ b. the score for `"TNS1PBMA"` would be $$-2 \cdot 5 = -10$$ since it contains 5 uppercase letters (`N`, `S`, `B`, `M`, `A`) that follow another uppercase letter.
|
171
|
|
171
|
|
172
|
4. **Consecutive lowercase letters**: The same as for criteria #3 but for lowercase letters.
|
172
|
4. **Consecutive lowercase letters**: The same as for criteria #3 but for lowercase letters.
|
173
|
|
173
|
|