Password security | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Password security

I made a web page and I used PHP to connect to MySQL , my question is how can I hide the password or encrypt it because I think it is incorrect show the password in the code.

7th Jan 2017, 7:00 PM
Eduardo Hernandez
Eduardo Hernandez - avatar
2 Answers
0
if you mean the DB Password, you should house it somewhere other than the www or public directory. Then include the connection data to your database scripts.
7th Jan 2017, 9:27 PM
Louis Milotte
Louis Milotte - avatar
0
thanks for your answers!
8th Jan 2017, 6:21 PM
Eduardo Hernandez
Eduardo Hernandez - avatar