Jump to content

Inputting an encrypted password


ashrobbins87

Recommended Posts

When you enter a password manually into sql you can use

INSERT INTO table VALUES (username, PASSWORD('pass'));

with PASSWORD meaning the password shows as its hash value when viewed. How can I do this when I'm entering a new password from a form?

 

I've tried

"INSERT INTO cms_users (username, password) 
			VALUES ('".$_POST["username"]."','".$_POST["password"]."')";

but this returns the password as it should be.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/149240-inputting-an-encrypted-password/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.