Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.