4 Replies - 8535 Views - Last Post: 23 December 2008 - 02:41 PM Rate Topic: -----

#1 saji  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-June 08

PHP login script with Client side and server side validation

Posted 22 December 2008 - 04:24 AM

Is there any free login script in php available with the following conditions.

Login & password should send to the server with hashing techinque. It should not send to the server in plain text.

This post has been edited by saji: 22 December 2008 - 04:25 AM

Is This A Good Question/Topic? 0
  • +

Replies To: PHP login script with Client side and server side validation

#2 joeyadms  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 178
  • Joined: 04-May 08

Re: PHP login script with Client side and server side validation

Posted 22 December 2008 - 05:27 AM

I'm not sure if you mean it should be encrypted on the client side, or if you are talking about the password should be hashed before storing/comparing to db.

For the first, you need SSL, and that has little to do with php. For the second, just use a method such as SHA512.

To get some info on building a very robust login system see my tutorials on this here:
http://www.dreaminco...wtopic54760.htm [pt. 1]
http://www.dreaminco...wtopic54849.htm [pt. 2]
Was This Post Helpful? 0
  • +
  • -

#3 ~NJ  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 8
  • View blog
  • Posts: 52
  • Joined: 22-December 08

Re: PHP login script with Client side and server side validation

Posted 22 December 2008 - 05:31 PM

I'd recommend a cURL script but you would encrypt the password prior to initilaizing the cURL script.

Something like:
$user = 'this';
$password = 'that';

$encrypted_user = md5($user);
$encrypted_pass = md5($password);
// Or you could use sha1($user); or whatever encryption they require...

// Initialize cURL script which would execute some POST variables or GET variables (if the script is insecure).


Was This Post Helpful? 0
  • +
  • -

#4 dreamincodehamza  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: -12
  • View blog
  • Posts: 332
  • Joined: 12-September 08

Re: PHP login script with Client side and server side validation

Posted 23 December 2008 - 11:11 AM

Send password or anything to server after using php hashing functions.
and send them to any where and after recieving compare it with send
hashing if matches then thats it.
Was This Post Helpful? 0
  • +
  • -

#5 ~NJ  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 8
  • View blog
  • Posts: 52
  • Joined: 22-December 08

Re: PHP login script with Client side and server side validation

Posted 23 December 2008 - 02:41 PM

I'm sorry, I don't understand. You mean you want to compare the server response? Or are you referring to the cookie that is being received?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1