Jump to content

mysql_connect security


stig1

Recommended Posts

Is there anyway to put the password for the mysql connect statement encoding in like md5.

 

I currently put all my mysql config data in a php file called config in the web directory, and then call that file into mysql_connect, but i'm wondering if there is another way i can do it, cause the site i'm doing is an online store.

Link to comment
https://forums.phpfreaks.com/topic/208964-mysql_connect-security/
Share on other sites

If someone has direct access to your source files on your server, it does not matter if they can see your mysql connection details or not. They can just read your msyql data files directly.

 

Also, if you were to encrypt/decrypt (which md5 is not, it is a one-way hash) your database connection details, the key needed to decrypt them would be present in your source code and again, if someone has that level of access to your files, it does not matter.

 

You are trying to make a non-problem into a problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.