Re: Protecting database passwords
| From: | - Edwin - | Date: | Thu, 01 Jul 2004 06:11:09 +0000 |
| Subject: | Re: Protecting database passwords | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189430@lists.php.net to get a copy of this message | ||
Hi,
On Wednesday 30 June 2004 09:58, Bob Hockney wrote:
> Hi there,
>
> I wrote a php script that accesses a database, and I am
> wondering about securing the password to the database. I
> could prompt the user for the password every session, but
> I don't necessarily want the user to have the password.
You mean the password for the database? Why would the user
need that? If the users need a password to access the site,
then create one for the *site*. Only you and your scripts
need to know what the password for the database is...
> Unless I'm missing something, any on-disk place I store
> the password needs to be readable by PHP, and therefore
> isn't very secure. I have restricted the rights of the
> database user, but I'm wondering how others have dealt
> with this, or maybe I'm completely missing the point.
Or, am I missing the point? :)
- E -