davidstutz / password-score

Password scoring library written in Javascript.
http://davidstutz.de/password-score/
BSD 3-Clause "New" or "Revised" License
57 stars 21 forks source link

Script less/unresponsive for long passwords #1

Open rahiparikh opened 8 years ago

rahiparikh commented 8 years ago

I am currently trying to use the script with progressbar driver and the script slows down/hangs for long passwords.

Reproduction Details:

Affected File:

UI Plugin:

davidstutz commented 8 years ago

That's definitely a problem. I currently see three simple workarounds that might be interesting for you (I might play around with them, too):

  1. Turn off the plugin when the user adds new characters as soon as a minimum "goodness"/"hardness" of the entered password is reached. This might often be the case with fewer (let's say roughly 15) characters.
  2. Turn off specific features of Password Score (e.g. remove specific dictionaries or the keyboard feature which may cause the JavaScipt to be quite slow).
  3. A combination of 1. and 2.

Will come back as soon as I have time to play around myself.

davidstutz commented 8 years ago

https://github.com/davidstutz/password-score/issues/1 may also be interesting!