BryanChung Posted December 29, 2009 Share Posted December 29, 2009 I am interested to do colored progress bar exactly like what you get in https://accountservices.passport.net/reg.sr...700&lc=1033 ... Has red for "weak", yellow for "medium", green for "strong". How should I code it? Link to comment Share on other sites More sharing options...
0 winlonghorn Posted December 29, 2009 Share Posted December 29, 2009 I am interested to do colored progress bar exactly like what you get in https://accountservices.passport.net/reg.sr...700&lc=1033 ... Has red for "weak", yellow for "medium", green for "strong". How should I code it? I would say just check to see if the secure mixture of characters and numbers is in the password and then simply set the color based on that. Link to comment Share on other sites More sharing options...
0 svnO.o Posted December 29, 2009 Share Posted December 29, 2009 (edited) Using regular expressions with PHP or ASP.Net to test the password strength should be the majority of it. Based on the results of the expressions you can generate a color and use AJAX to dynamically update the password strength area. Aside from regular expressions you can also test some basic things like making sure the password isn't "password", "qwerty", "username", etc., and also making sure the password is long enough. Regular expressions would be stuff like checking for numerical sequences (eg. "12345") or patterns (eg. "123123"). You could add a weighted value for each test/regex if you want more flexibility in password strengths or just specify a certain level of security (weak/average/strong) based on individual tests. Edited December 29, 2009 by Se7enVII Link to comment Share on other sites More sharing options...
0 winlonghorn Posted December 29, 2009 Share Posted December 29, 2009 Using regular expressions with PHP or ASP.Net to test the password strength should be the majority of it. Based on the results of the expressions you can generate a color and use AJAX to dynamically update the password strength area. Aside from regular expressions you can also test some basic things like making sure the password isn't "password", "qwerty", "username", etc., and also making sure the password is long enough. Regular expressions would be stuff like checking for numerical sequences (eg. "12345") or patterns (eg. "123123"). You could add a weighted value for each test/regex if you want more flexibility in password strengths or just specify a certain level of security (weak/average/strong) based on individual tests. That was essentially what I was trying to get at, but had trouble with explaining it. Thank you for the better explanation. :) I couldn't think of the term "Regular Expression" and I was trying very hard to think of the name for it. Link to comment Share on other sites More sharing options...
0 BryanChung Posted December 29, 2009 Author Share Posted December 29, 2009 I would say just check to see if the secure mixture of characters and numbers is in the password and then simply set the color based on that. Okay I am just trying to do a very simple one. Kind of like: Weak passwords = Chars only Medium Passwords= Chars + Int Strong Passwords = Chars + Int + Special Characters. Number of chars per password does not matter. But question is, what kind of coding should I use? Example: if, else, for, etc etc.Any sample coding of such? Link to comment Share on other sites More sharing options...
0 still1 Posted December 29, 2009 Share Posted December 29, 2009 Okay I am just trying to do a very simple one. Kind of like:Weak passwords = Chars only Medium Passwords= Chars + Int Strong Passwords = Chars + Int + Special Characters. Number of chars per password does not matter. But question is, what kind of coding should I use? Example: if, else, for, etc etc.Any sample coding of such? No of char per password do matter when you create a password. It determine the complexity of the password and is hard to crack. length <4 and only char = weak you might be interested in this http://stackoverflow.com/questions/198974/...ssword-strength Link to comment Share on other sites More sharing options...
Question
BryanChung
I am interested to do colored progress bar exactly like what you get in https://accountservices.passport.net/reg.sr...700&lc=1033 ...
Has red for "weak", yellow for "medium", green for "strong".
How should I code it?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts