You are here: Re: mysql_connect and encrypted password « PHP Programming Language « IT news, forums, messages
Re: mysql_connect and encrypted password

Posted by Shmuel on 10/08/07 21:51

> 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.

Yes I know it works like this, but the thing is that I store user
information
in the database like: host, user, pass, etc. and then from a
controller
script I retrieve information from the correct database, according to
the
details of a certain user. So I don't want them be shown as plain
text.
So I'm not talking about mysql users, just "users". They happen to be
users that can also connect to the database... also to ftp...


> 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.


What I would like to is to give mysql_connect() say, give a parameter
to
tell whether the password I pass to it is encrypted or not.

Shmuel

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация