Česky: BezpecnostHesla
This feature shows, how strong the password is:
Type ypur password: | |
Password strength: | not inserted |
<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>
Integer passwordStrength(String password)
Returns password's strength points
void checkPassword(String password, String id, Array messages)
Displays message
© 2008 Adam Heinrich
Licensed under GNU General Public License
Library and example page at http://lib.adamh.cz/password-strength