Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Script for checking strong password weak password possible in PHP?
Old 02-16-2010, 12:43 PM Script for checking strong password weak password possible in PHP?
Skilled Talker

Posts: 53
Name: Wizzy
Trades: 0
Hello Friends

In a form while entering data in password field what is the simplest way to show the status weak password or strong password in PHP?

Thanks
virtualmisc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-16-2010, 01:18 PM Re: Script for checking strong password weak password possible in PHP?
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Id personally check to see if the string has a mixture of Uppercase and Lowercase letters then if so, give a score of +1

If it has numbers , add another +1
If it has odd stuff like :@# etc . then add +2

Then mark outta 4
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 02-17-2010, 03:10 AM Re: Script for checking strong password weak password possible in PHP?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
This cannot be done with php alone if only you don't want to submit a form on every character entered. You will have to use ajax also.

Considering the php side, you can create several strings containing different sets of characters, e.g. lowercase letters, uppercase letters, digits and special characters, and then preg_match the entered password along them adding a score point every time it matches as lynxus advised.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-17-2010, 12:27 PM Re: Script for checking strong password weak password possible in PHP?
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
here you are:

http://www.crankberryblog.com/2010/p...etector-script

if you want per character testing then mtishetsky is right you need to use alternatives
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
Old 02-26-2010, 10:29 AM Re: Script for checking strong password weak password possible in PHP?
prasanthmj's Avatar
Experienced Talker

Posts: 42
Name: Prasanth
Trades: 0
if you want to give real-time feedback as the user types the password, you can use the JavaScript widget below:
A rich password widget for your web forms
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
prasanthmj is offline
Reply With Quote
View Public Profile
 
Old 02-27-2010, 02:11 AM Re: Script for checking strong password weak password possible in PHP?
MattGoucher's Avatar
Skilled Talker

Posts: 64
Name: Matt
Location: California
Trades: 0
I agree with most of the posters, You really cannot use php to validate text as it is being typed. PHP works in somewhat of an instance. It does not work without refreshing the page. In theory you could do it, but it would require the refreshing of the page, and would also require the data to be submitted and replied, which in my opinion is not secure.
MattGoucher is offline
Reply With Quote
View Public Profile Visit MattGoucher's homepage!
 
Reply     « Reply to Script for checking strong password weak password possible in PHP?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23286 seconds with 12 queries