I have a situation where I would like to be able to rate a users password in the web interface to my system, so that before they hit submit they know if they have a bad password.
Key Requirements:
- Must be able to rate the password, not just pass/fail.
- Should disable the form if the password is below a threshhold, so the user can’t submit it.
- Look nice. 🙂
- Not use jQuery – we’re currently using Mochikit and Y!UI in this system.
I’ve found many password meters written in jQuery, and things like http://www.passwordmeter.com/ that are too verbose.
Can anyone suggest a good drop in javascript password rater I can use, or give an example of how to write one?
Here’s a collection of scripts:
http://webtecker.com/2008/03/26/collection-of-password-strength-scripts/
(archived link)
I think both of them rate the password and don’t use jQuery… but I don’t know if they have native support for disabling the form?