cxr,
It's called PHP DataGrid.
I'm connecting to a mySql database.
It says the password should be encrypted in the instructions.
Best,
MH
Main Topics
Browse All TopicsSo I guess this is so simple I can't find it anywhere...
I am using a datagrid that requires the connection string in the file because it assigns variables for username, host, password, etc. It says that the password should be encrypted beforehand.
I guess this may be a two part question: How do I encrypt the password (I assume in a separate file?) then how do I call define that variable in the current file?
I've searched for a couple hours and all I can find is about encrypting .Net. I guess it's either a bigger problem there or so obvious to PHP coders it's not needed...
Best,
MH
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
cxr,
http://www.apphp.com/php-d
Best,
MH
cxr,
Yes, I know it's not necessary to encrypt the password to get it working, but if you don't it's a security hole.
I don't know why all this matters anyway. I want to know how to encrypt the password. It doesn't really matter which application I'm running...
But, if you look here:
http://www.apphp.com/php-d
And then look at the commented out string behind $DB_PASS, it recommends that the password be encrypted.
Step 4. Editing some important values.
$DB_USER='name'; /* usually like this: prefix_name */
$DB_PASS=' '; /* must be already encrypted (recommended) */
$DB_HOST='localhost'; /* usually localhost */
$DB_NAME='dbName'; /* usually like this: prefix_dbName */
Best,
MH
Yes, I did see that. But I checked the source, and there is no decrypting there. In other words, you must provide the password in clear text, as far as I can tell.
I agree it could be more secure, but it is not a security hole, at least not any more than any other database application I have seen. The php files are "protected" in the sense that you must have read access to the php files to be able to see the password. It's not like html, where you can use the "View source" feature in the browser to see the code.
Business Accounts
Answer for Membership
by: cxrPosted on 2009-03-21 at 17:04:47ID: 23949540
There is no standard datagrid in php. Which datagrid library are you using? What database are you trying to connect to? Where does it say that the password should be encrypted beforehand?