boyzdynasty
04-25-2003, 10:05 PM
I want to create a column in a table.
but I want the column to be encrypted...how do I do that....(it's for the password)
And if I were to retrieve the column, how do I unencrypt it?
*using PHP to manipulated mySQL DB*
Thanx!!
boyzdynasty
04-26-2003, 01:57 AM
never mind.
i need to encrypt the password b4 I inserted in the table.
That was it.
CyanBlue
04-26-2003, 04:45 AM
Show us what your script look like... I think some people might be benefitted from it... Of course, if you don't mind... ;)
boyzdynasty
04-26-2003, 05:27 AM
nothing fancy...just use the encryption method (md5) that is built into mySQL
Ex:
====
INSERT INTO employee (ssn,password,title,firstName,lastName,address,cit y,state,zip,phone,status,dateHired,dateTerm,commen ts) VALUES("123456789",md5("whatever"),"MA","TOM","TESTER","123 FAKE STREET","PHILADELPHIA","PA","19122","1234566543","1","20030310", "","");
but when you check for password...for authentication...you have to convert the password input from the user using md5($password) first...then do the query
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.