PHP Login (Ask for random password digits)

Reply

Join Date: Sep 2009
Posts: 9
Reputation: Zack_G is an unknown quantity at this point 
Solved Threads: 0
Zack_G Zack_G is offline Offline
Newbie Poster

PHP Login (Ask for random password digits)

 
0
  #1
Sep 27th, 2009
Hi,

This has been puzzling me and i hope someone can help. I have a MySQL database field that contains a members password "password" and i need a login script that asks for the customers username and 4 random digit's of there password, for example:

Username: [ ]
Password:
Digit 2 [ ], Digit 4 [ ], Digit 6 [ ], Digit 8 [ ]

But if there password is only 7 digit's it would be pointless asking for an 8th digit - so i also need help working that out too. If anyone has a code example or could type a quick one up it would be superb.

Thanks,
Zack.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,373
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 166
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: PHP Login (Ask for random password digits)

 
0
  #2
Sep 27th, 2009
if stored clear in the database and transmitted in clear between the pc and the server its not a password its an invitaion to packet sniffers

hash: Md5 sha or otherwise (md5 serverside | md5 clientside) the password and verification of the password on the pc at account setup, and transmit & store the hash in the password column
hash the entry password on the pc and send the hash for verification
nobody knows what the password is, sniffers can't read the password

Users will continually make errors in this 4th char 3rd char crap
even if you ask for their name as a password people will count characters wrong
Last edited by almostbob; Sep 27th, 2009 at 3:35 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

Tags
login, password, php

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC