Obsah

Password Strength

Česky: BezpecnostHesla

About

This feature shows, how strong the password is:

Example

Type ypur password:
Password strength: not inserted

Example Code

<strong>Type ypur password:</strong>
<input type="password" name="password" id="password" onkeyup="checkPassword(this.value, 'strength', new Array('too short', 'weak', 'good', 'strong'))" />
<br />
<b id="strength">not inserted</b>

Don't forget to include JavaScript library into your page (head section):

<script type="text/javascript" src="password.js"></script>

Description

Integer passwordStrength(String password)

Returns password's strength points


void checkPassword(String password, String id, Array messages)

Displays message

License

© 2008 Adam Heinrich

Licensed under GNU General Public License

Download

Library and example page at http://lib.adamh.cz/password-strength