passwordstrength
no way to compare when less than two revisions
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
— | passwordstrength [2017/10/09 22:00] (aktuální) – vytvořeno - upraveno mimo DokuWiki 127.0.0.1 | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== Password Strength ====== | ||
+ | Česky: [[BezpecnostHesla]] | ||
+ | |||
+ | ===== About ===== | ||
+ | |||
+ | This feature shows, how strong the password is: | ||
+ | * +1 point for each character over 6 in length | ||
+ | * +1 point for being mixed case, upper and lower | ||
+ | * +1 point for including both numbers and letters | ||
+ | * +1 point for including punctuation | ||
+ | |||
+ | * less than 3 points -> weak password | ||
+ | * 3 - 5 points -> good password | ||
+ | * 5 and more points -> strong password | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | < | ||
+ | <script type=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | <code html> | ||
+ | < | ||
+ | <input type=" | ||
+ | <br /> | ||
+ | <b id=" | ||
+ | </ | ||
+ | |||
+ | Don't forget to include JavaScript library into your page (//head// section): | ||
+ | <code html> | ||
+ | <script type=" | ||
+ | </ | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | //Integer// **passwordStrength**(// | ||
+ | |||
+ | Returns password' | ||
+ | * **password** - password to be checked | ||
+ | |||
+ | ----------------------------------- | ||
+ | |||
+ | //void// **checkPassword**(// | ||
+ | |||
+ | Displays message | ||
+ | * **password** - password to be checked | ||
+ | * **id** - id of element for displaying the message | ||
+ | * **messages** - array of messages with 4 elements - for example 'too short', | ||
+ | |||
+ | ===== License ===== | ||
+ | (c) 2008 [[http:// | ||
+ | |||
+ | Licensed under [[http:// | ||
+ | |||
+ | ===== Download ===== | ||
+ | |||
+ | Library and example page at http:// | ||
passwordstrength.txt · Poslední úprava: 2017/10/09 22:00 autor: 127.0.0.1