edge92 Posted October 2, 2007 Share Posted October 2, 2007 Hi, I'm by no means any expert PHP user. As the title says, I need to save important information, namely my MySQL Database Password in a secure manner somehow. I've looked all around for clues to do this, some things that I found were using config files but I don't know much about them and I couldn't find anything on them here or anywhere else. This is really important to me, so any help on this issue would be very much appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/71597-keeping-php-database-passwords-secure/ Share on other sites More sharing options...
MadTechie Posted October 2, 2007 Share Posted October 2, 2007 most people store the database host/username/password in a config.php file ie <?php $DB_HOST="localhost"; $DB_USER="root"; $DB_PASS="password"; ?> then include that file whenever they use the database and instead of retyping the password they use $DB_PASS, now as the config.php is a php file its parse by the server so the end user can not see that password as for storing members password IN a database, well personally i use MD5+SALT.. more detail if you need it Quote Link to comment https://forums.phpfreaks.com/topic/71597-keeping-php-database-passwords-secure/#findComment-360466 Share on other sites More sharing options...
edge92 Posted October 2, 2007 Author Share Posted October 2, 2007 Wow thanks for the fast response. That seems to clear up what I was wondering about. And yes I read about hash's and salts earlier I'll definitely take your advice. Anyways, thanks again, I'll see how it goes. Quote Link to comment https://forums.phpfreaks.com/topic/71597-keeping-php-database-passwords-secure/#findComment-360478 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.