|
Posted by Shmuel on 10/08/07 18:49
Thanks for your answer.
What I mean, though, is that I need to connect to the database
with an password that is encrypted, like this:
mysql_connect('host', 'user',
'5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8');
I store that password in database, and want to have it encrypted.
I am not talking about passwords that are in the mysql table,
but instead a table of my own that has the user information.
So if somebody gets into my db server, he wont see the passwords as
they are,
but instead encrypted.
On Oct 8, 5:49 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Shmuel)
>
> >Is it possible to give to mysql_connect an encrypted (md5 or sha1)
> >password?
> >If not is there a workaround?
>
> >I store passwords for users in database and don't want to use plain
> >text passwords.
>
> The passwords in the MySQL user database are already encrypted. Have a
> look at the PASSWORD() function.
>
> Micha
Navigation:
[Reply to this message]
|