JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Calendar Script Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 




Password Strength Checker Javascript


About
Javascript strength checker/meter that allows you to test the strongness of your password.


Features
a) Categorise your passwords as strong, good or weak.
b) Usage of numbers and special characters yields best results.
c) Provides simple and reliable strength indications.
d) Type in the text box below to check the intensity.

Preview

Pass word checker

Type your password to check how strong it is:



Code
Javascript
<!-- Script by hscripts.com -->
<script type="text/javascript"> var pass_strength; function IsEnoughLength(str,length) { if ((str == null) || isNaN(length)) return false; else if (str.length < length) return false; return true; } function HasMixedCase(passwd) { if(passwd.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) return true; else return false; } function HasNumeral(passwd) { if(passwd.match(/[0-9]/)) return true; else return false; } function HasSpecialChars(passwd) { if(passwd.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)) return true; else return false; } function CheckPasswordStrength(pwd) { if (IsEnoughLength(pwd,14) && HasMixedCase(pwd) && HasNumeral(pwd) && HasSpecialChars(pwd)) pass_strength = "<b><font style='color:olive'>Very strong</font></b>"; else if (IsEnoughLength(pwd,8) && HasMixedCase(pwd) && (HasNumeral(pwd) || HasSpecialChars(pwd))) pass_strength = "<b><font style='color:Blue'>Strong</font></b>"; else if (IsEnoughLength(pwd,8) && HasNumeral(pwd)) pass_strength = "<b><font style='color:Green'>Good</font></b>"; else pass_strength = "<b><font style='color:red'>Weak</font></b>"; document.getElementById('pwd_strength').innerHTML = pass_strength; } function ctck() { var sds = document.getElementById("dum"); if(sds == null){ alert("You are using a free package.\n You are not allowed to remove the tag.\n"); } var sdss = document.getElementById("dumdiv"); if(sdss == null){ alert("You are using a free package.\n You are not allowed to remove the tag.\n"); } } document.onload ="ctck()"; </script> <!-- Script by hscripts.com -->


HTML Code
<!-- Script by hscripts.com -->
<form name=df style='margin:0px;'>
<input type=password length=20 name='pwd' onkeyup='CheckPasswordStrength(this.value);'>
<div id='pwd_strength'></div>
</form>
<div style="padding-right:850px; font-size: 10px;color: #dadada;" id="dumdiv" align=center>
<a href="http://www.hscripts.com" id="dum" style="text-decoration:none;color: #dadada;">©h</a></div>
<!-- Script by hscripts.com -->

Release Date -
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com


Usage
a) Execute the code by just copying and pasting it.
b) Use this simplified password strength meter script on your web page.


License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting