How to Make a Password Strength Meter Like Google
-
hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......
Impact Pro
string mashing. Look for upper and lower case. Look for non letters. Look if the password matches the username or part of it. Stuff like that.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......
Impact Pro
basemake wrote:
How to Make a Password Strength Meter Like Google? i want some help....plz reply me...
Christian graus suggestion is the best, apart from that, if you are using VS2005 and Ajax Toolkit, you have password strength control with that. That can be used for this.
-
hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......
Impact Pro
For that u can use Ajax control tool kit also if u know then. Otherwise javascript is best here I write full code which is aspx file code ok just copy it and check it. function CheckPwdStrenth() { var pwd = document.getElementById("txtpwd").value; var cat = ""; var i = 0; var caps = false; // for upper case is there or not var lawer = false; // for check lawer case is there or not var digit = false; // check digit is there or not // check the lenght first is it less than six char than it is week. if(pwd.length<=5) { document.getElementById("lblstrength").innerHTML = "Weeker"; document.all.td1.bgColor = "red"; document.all.td2.bgColor = "red"; document.all.td3.bgColor = "red"; document.all.td4.bgColor = "red"; } else { for(i=0;i<pwd.length;i++) { cat = pwd.charAt(i); if(cat>="A" && cat<="Z") caps = true; //Upper case is there. if(cat>="a" && cat<="z") lawer = true; // Lawer case is there. if(cat>=0 && cat<=9) digit = true; // Digit is also there. } if(caps==true && lawer == true && digit == true) { document.getElementById("lblstrength").innerHTML = "Strongest"; document.all.td1.bgColor = "green"; document.all.td2.bgColor = "green"; document.all.td3.bgColor = "green"; document.all.td4.bgColor = "green"; } else { if(caps==false && lawer == false && digit == false) { document.getElementById("lblstrength").innerHTML = "Medium"; document.all.td1.bgColor = "maroon"; document.all.td2.bgColor = "maroon"; document.all.td3.bgColor = "maroon"; document.all.td4.bgColor = "maroon"; } else { document.getElementById("lblstrength").innerHTML = "Stronger" document.all.td1.bgColor = "lime"; document.all.td2.bgColor = "lime"; document.all.td3.bgColor = "lime"; document.all.td4.bgColor = "lime"; } } } } function focusset() { // txtpwd.focus(); // alert("T"); }