If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > encrypted mysql password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-12, 00:12
apoorv.s apoorv.s is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
encrypted mysql password

Hi,
I am using PHP-5.2.0 and mysql-5.1.50.
I created a ‘config.php’ file (all sensitive information about mysql connection in this file) and placed it in safe directory.
My concern is, mysql user password is in plain text. If anybody get access on this file he can see the password /or developers can print the password variable to see the password.
How I can keep password encrypted form and how to pass encrypted password to mysqli_connect function?
Please help.
Reply With Quote
  #2 (permalink)  
Old 01-23-12, 01:51
hello-world hello-world is offline
Registered User
 
Join Date: Dec 2011
Posts: 15
Quote:
Originally Posted by apoorv.s View Post
Hi,
I am using PHP-5.2.0 and mysql-5.1.50.
I created a ‘config.php’ file (all sensitive information about mysql connection in this file) and placed it in safe directory.
My concern is, mysql user password is in plain text. If anybody get access on this file he can see the password /or developers can print the password variable to see the password.
How I can keep password encrypted form and how to pass encrypted password to mysqli_connect function?
Please help.
I have the same question. This is one answer I received: "There's no risk exposing password when you use mysql_connect() function in PHP. Internet user cannot see your PHP source code. When they request for your .php script, all they see is the HTML code it generates, not your PHP source code. Only authorized personnel such as developers or network admin who has access to your server can see the PHP source code."

I am still skeptical.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On