Jump to content

encrypted mysql password


apoorv.s

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/254457-encrypted-mysql-password/
Share on other sites

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.