|
Posted by Michael Fesser on 10/08/07 19:28
..oO(Shmuel)
>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');
The password is passed as plain text to mysql_connect(), because MySQL
itself encrypts it in order to compare it with the stored password hash.
>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.
Confusing ... If you want to connect with mysql_connect() to the server,
you have to follow MySQL's authentication rules and store encrypted
passwords in its user table. You can't use your own table for that.
Micha
Navigation:
[Reply to this message]
|