Jump to content

Password Encription


CWeaver

Recommended Posts

I've seen this recommended many times:

$EncryptedPassword2 = md5($password);

But doesn't all php run on the server? So what's the point since you're sending the password to the server and the server is encrypting it then processing a query with it? Seems like it should be encrypted on the client then sent to the server. Is there a way of doing so? Is there a point to encrypting it on the server?

Link to comment
Share on other sites

Passwords that are sent to the MySQL server (the database, if present), then they could get encrypted by SQL. In PHP, I don't know :) sorryExample:

INSERT INTO table VALUES ('$username',password('$password'))
Edited by Dan The Prof
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...