Search found 4 matches

by Wilio
Sun Jan 18, 2009 10:53 am
Forum: PHP - Code
Topic: Hiding the password in a MySQL table
Replies: 4
Views: 224

Re: Hiding the password in a MySQL table

Mark Baker wrote:Well the normal method is to hash it using a function like md5 or sha1.
base64 is easily reversible, and therefore inadequate for passwords
Thanks, I didn't know about sha1. It's also quite easy to use.
by Wilio
Sun Jan 18, 2009 10:51 am
Forum: PHP - Code
Topic: edit problems
Replies: 5
Views: 272

Re: edit problems

As the poster above said you need to use mysql_query() to perform your task.
And as for inserting data in your table, it's quite easy.

$query = INSERT INTO *table_name*(column_name1, column_name2) VALUES ('$var1', '$var2', etc...);

To run a query:

mysql_query($query);
by Wilio
Sun Jan 18, 2009 10:34 am
Forum: PHP - Code
Topic: Hiding the password in a MySQL table
Replies: 4
Views: 224

Re: Hiding the password in a MySQL table

In summary, yes.
by Wilio
Sun Jan 18, 2009 10:17 am
Forum: PHP - Code
Topic: Hiding the password in a MySQL table
Replies: 4
Views: 224

Hiding the password in a MySQL table

Now here is my problem. I have builded a registering system that works as I want, only I don't want the password to show up as it is written in the password column. Why? It simply breaks the privacy of a user who wants to register. I heard about base64_encode() and eval(), but I'm not sure if they c...