Stop analyzing password strength if it becomes longer than 64 chars

This should help reduce the chance that zxcvbn4j explodes on a password
input.

I also took the opportunity to deduplicate related code a bit.
This commit is contained in:
Alexander Bakker 2024-03-27 14:43:28 +01:00
parent 06437132b5
commit 559e68e0d2
4 changed files with 65 additions and 43 deletions

View file

@ -447,6 +447,7 @@
<string name="password_strength_fair">Fair</string>
<string name="password_strength_good">Good</string>
<string name="password_strength_strong">Strong</string>
<string name="password_strength_unknown">Password too long for strength analysis</string>
<string name="pref_pin_keyboard_title">Use PIN keyboard on lockscreen</string>
<string name="pref_pin_keyboard_summary">Enable this if you want to enable the PIN keyboard on the lockscreen. This only works for numeric passwords</string>