Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Make a Password Strength Meter Like Google

How to Make a Password Strength Meter Like Google

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ajay58886
    wrote on last edited by
    #1

    hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......

    Impact Pro

    C N T 3 Replies Last reply
    0
    • A ajay58886

      hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......

      Impact Pro

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      • A ajay58886

        hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......

        Impact Pro

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        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.


        My Website | Ask smart questions

        1 Reply Last reply
        0
        • A ajay58886

          hi all.. How to Make a Password Strength Meter Like Google? i want some help....plz reply me... thanks......

          Impact Pro

          T Offline
          T Offline
          Tarun Dudhatra
          wrote on last edited by
          #4

          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"); }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups