jQuery password strength plugin
JavaScript
Latest commit f70c866 Nov 11, 2011 @n0nick Triggering strength check on initial value too (Jason Judge's suggest…
…ion)

Some code cleanup, upping version number
Permalink
Failed to load latest commit information.
LICENSE
README.md
demo.html first commit May 13, 2011
jquery.password_strength.js

README.md

jQuery Password Strength

This plugin will check the value of a password field and evaluate the strength of the typed password. This is done by checking for the diversity of character types: numbers, lowercase and uppercase letters and special characters.

To use, call the function on a password field:

$('input[type=password]').password_strength(options);

The options argument is optional. Available values to set:

  • container: Element to display the strength text in. If none given, a span would be created immediately after the password field.

  • bar: External element to set a strength class to (optional).

  • minLength: Minimum password length.

  • texts: An array of strength texts for the 5 different levels, to override the default texts.

  • onCheck: A callback that gets called after a strength check. Gets the new strength value as a parameter.

jQuery plugin page: http://plugins.jquery.com/project/password_strength

License

The software is provided AS IS under the terms of the GNU General Public License.