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

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]


Удаленная работа для программистов  •  Как заработать на 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

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